(1) Where any money is payable by the Crown to some person who, under any order of any court, is liable to pay any money to any other person, and that other person would, if the money so payable by the Crown were money payable by a subject, be entitled under the Code of Civil Procedure to obtain an order for the attachment thereof as a debt due or accruing due, or an order for the appointment of a sequestrator or receiver to receive the money on his or her behalf, the High Court may, subject to the provisions of this Act and in accordance with the relevant articles of the said Code make an order restraining the first-mentioned person from receiving that money and directing payment thereof to that other person, or to the sequestrator or receiver.