The Attorney General may, on the request of the Water Supply Commission, institute proceedings in any court, now or hereafter clothed with jurisdiction in cases in which the Commonwealth is a party, for the purpose of revoking, for violation of its terms, any permit issued hereunder; or for the purpose of remedying or correcting, by injunction, mandamus, or other process, any action of commission or omission in violation of the provisions of this act or any lawful regulation or order promulgated hereunder. The said courts shall have jurisdiction over all the above-mentioned proceedings, and shall have power to issue and execute all necessary process, and to make and enforce all rights, orders, and decrees to compel compliance with the law, orders, and regulations of the Commissioner of Forestry in respect of any so permitted dam, water obstruction, or appurtenant works, and to compel the performance of any condition imposed under the provisions of this act. In the event a decree revoking a permit is entered, the court is empowered to sell the whole or any part of the dam or other water obstruction, together with any or all appurtenant works, lands, and water rights; to wind up the business of such permittee conducted in connection with such dam or water obstruction; to distribute the proceeds to the parties entitled to the same; and to make and enforce such further orders and decrees as equity and justice may require. At such sale or sales the vendee shall take the rights and privileges belonging to the permittee, and shall perform the duties of such grantee and assume all outstanding obligations and liabilities of the grantee which the court may deem equitable in the premises.
32 P.S. § 138