CCP 2504     

Art. 2504.  Specific performance; court directing performance by third party

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.