The court of common pleas of the county of the residence of any inmate of a State-owned mental hospital, or any home, hospital, asylum, or other institution wherein said inmate is maintained in part by the Commonwealth of Pennsylvania, shall, upon the application of the Department of Justice, acting on behalf of the Department of Revenue, make an order for the payment of maintenance to the Commonwealth, upon the trustee, committee, guardian, or other person who has charge of the estate of any such inmate, or against the husband, wife, father, mother, child, or children of any person so maintained; and any order made against the husband, wife, father, mother, child, or children shall be in such amount as the court, in its discretion, deems proper, taking into consideration their ability to pay for said maintenance; and said court may also, upon like application, direct any trustee, committee, guardian, or other person having charge of any such estate, to file with the Department of Revenue the statement required by the second section of this act.
71 P.S. § 1784