(2) Any person who defaults in complying with an order of the Court in relation to any matter under any enactment other than the payment of money, shall be punished in the manner prescribed by the enactment, or, if no punishment is prescribed, may, in the discretion of the Court, be ordered to pay a sum not exceeding $500 for every day during which he or she is in default or to be imprisoned until he or she has remedied his or her default.