Whenever the department shall have refused to grant or renew a license, or shall have revoked a license required by law to operate or conduct a private institution, or shall have ordered the person to refrain from conduct violating the rules and regulations of the department and the person deeming himself aggrieved by such refusal or revocation or order shall have appealed the action of the department, the court may, during pendency of such appeal, issue a restraining order or injunction upon proof that the operation of the private institution or its failure to comply with the order of the department adversely affects the well-being and safety of the patients or inmates in the private institution.
62 P.S. § 1055