The court may not enter an order under this subtitle against a party unless the party is given reasonable notice and an opportunity to be heard.