Any action brought upon an assignee's bond may be prosecuted by a party in interest by leave of the court; and all moneys realized thereon shall be applied by direction of the judge in satisfaction of the debts of the assignor in the same manner as the same ought to have been applied by such assignee.
N.Y. Debt. and Cred. Law § 10