(1) Procures a restraining order, injunction, or other appropriate process, which has become final and not further appealable, against the bank from a court of competent jurisdiction in a cause therein instituted by him or her wherein the person to whose credit the deposit stands is made a party and served with summons; or
(2) Executes to the bank, in form and with sureties acceptable to it, a bond indemnifying the bank from any and all liability, loss, damage, costs, and expenses for and on account of the payment of the adverse claim or the dishonor of the check or other order of the person to whose credit the deposit stands on the books of the bank.