A decree for specific performance shall, if so ordered by the court, operate as a deed to convey land located in this state, or, in appropriate cases, other property, without any conveyance being executed by the vendor. In the case of land a copy of such decree certified by the clerk shall be recorded in the register's office in the county where the land lies and shall stand in the place of a deed. In all other cases where a judgment or decree directs a party to execute a conveyance of land or other property or to deliver deeds or other documents or to perform any other specific act and the party fails to comply within the time specified (or within a reasonable time if no time is specified), the court may direct the act to be done at the cost of the disobedient party by some other person appointed by the court, and the act when so done has like effect as if done by the party. The court may also in proper cases adjudge the party in contempt. In lieu of directing a conveyance of land or personal property, the court may enter a decree divesting the title of any party and vesting it in others, and such decree has the effect of a conveyance executed in due form of law. When any order or judgment is for the delivery of possession, the party in whose favor it is entered is entitled to a writ of execution or possession upon application to the clerk.