A person entitled to specific real property, by reason either of a perfected title or of a claim to title which ought to be perfected, may recover the same in the manner prescribed by this code, either by a judgment for its possession to be executed by the sheriff or by a judgment requiring the other party to perfect the title and to deliver possession of the property.
§ 27-1-431, MCA