73 Pa.C.S. § 7506
(a) Scope.— This section applies if the Uniform Construction Code, or a replacement code, is no longer applicable in townships as a result of:
(2) a final judicial order:
(b) Powers.— If subsection (a) applies, the board of commissioners has the following powers:
(1) Pass and enforce an ordinance to regulate land and improvements as follows:
(i) The ordinance may be related to any of the following:
(3) Do all of the following related to building inspectors, housing inspectors, property maintenance inspectors, fire prevention inspectors, electrical inspectors and plumbing inspectors:
(4) In addition to the penalties provided by the ordinance under paragraph (1), institute an action in equity to: