4 Pa.C.S. § 3907
(a) Petition for access to agency information.—
(1) The director of the Office of Enforcement Counsel within the bureau may petition a court of record having jurisdiction over information in the possession of an agency in this Commonwealth or, if there is no such court, then the Commonwealth Court for authorization to review or obtain information in the possession of an agency in this Commonwealth by averring specific facts demonstrating that:
(b) Procedure.—
(c) Court determination.—
(1) Following review of the record, the court shall grant the relief sought by the director of the Office of Enforcement Counsel if the court determines that:
(d) Release of materials or information.—
(e) Modification of order.—