If a judgment directs a party to perform a specific act, and he fails to comply within the time specified, the court may direct the act to be done by the sheriff or some other person appointed by the court, at the cost of the disobedient party, and with the same effect as if done by the party.