A fiduciary may agree with his surety for the deposit of any or all moneys or other assets of the estate with a bank or bank and trust company or other depository approved by the court, if such deposit is otherwise proper, on such terms as to prevent the withdrawal of such moneys or other assets without the written consent of the surety, or on order of the court made on such notice to the surety as the court may direct.
20 Pa.C.S. § 4501