(b) The planning commission, board of subdivision and land development appeals, the board of zoning appeals or any designated enforcement official may also seek a mandatory injunction in the circuit court where the affected property is located, directing a person or unit of government to remove a structure erected in violation of the provisions of this chapter or of any ordinance or rule and regulation adopted pursuant hereto.
(c) If the planning commission, board of subdivision and land development appeals, the board of zoning appeals or the designated enforcement official is successful in any such suit, the respondent shall bear the costs of the action.