(b) in proceedings in any Court for enforcing an order in any matter of bastardy, or an order under which weekly sums are made payable towards the maintenance of a wife, the Court may order him or her to be searched and any money found on him or her, or which may be found on him or her when taken to the correctional facility in default of payment of the sum adjudged to be paid by him or her, may, if the Court so directs, be applied towards the payment of such sum, and the balance, if any, shall be returned to him or her.