The several courts of quarter sessions shall, in open court as aforesaid, upon the petition of one or more persons, associations, partnerships, stock companies, or corporations, for a road from their respective lands or leaseholds to a highway or place of necessary public resort, or to any private way leading to a highway, or upon the petition of the chief executive officer of any executive or administrative department of the State Government for a road from any public highway across any lands of any person, association, or corporation to the boundary line of any lands owned, controlled, or administered by the Commonwealth, direct a view to be had of the place where such road is requested, and a report thereof to be made, in the same manner as is directed by the said act of thirteenth June, one thousand eight hundred and thirty-six.
36 P.S. § 2731