If an instrument making any such testamentary provision contains grants of authority to a fiduciary other than the foregoing, the surrogate's court having jurisdiction of the decedent's estate may, in its discretion, in an appropriate proceeding by the surviving spouse or upon an accounting, direct and enforce for the protection of the surviving spouse an equitable distribution, allocation or valuation of the assets, enjoin any fiduciary, whether appointed by will or otherwise, from exercising any power, statutory or otherwise, which would be prejudicial to the interests of the surviving spouse, enforce the liability of a fiduciary under the law and make such other directions, consistent with the provisions and purposes of this paragraph, as it may consider necessary for the protection of the surviving spouse.
N.Y. EPTL 5-1.1