If any such moneys or securities shall be contributed to or deposited with the Commonwealth directly, they shall be administered and paid out or used by the State Treasurer in accordance with the conditions prescribed by the donor or depositor. If such moneys or securities shall be contributed to or deposited with any officer, department, board or commission of the Commonwealth, the moneys shall be paid out and the securities delivered up by the State Treasurer as custodian, on requisition of such officer, department, board or commission, for the purposes for which any such contribution was made, or upon certification that the purposes of the deposit have been fulfilled.
72 P.S. § 3833