It is best to follow every court order you receive. However, sometimes the other side might not be doing so. When this happens you can ask the court to enforce the order by filing a Petition for Rule to Show Cause. This petition is a complaint that tells the court that the other party is not following a court order and you are asking the court to enforce its order through its power of contempt.
Once a Petition for Rule to Show Cause is filed, the other party must explain to the court why they are violating a court order. The other party can try to show to the court that the violation of the court order is not on purpose. Once a party has been asked to tell the court why they are violating a court order, the court can assign a lawyer to assist the party. This happens because, if the court finds the other party is violating the court order on purpose, the court can hold that party in contempt of court, which can lead to some jail time.