The remedy by writ of injunction or prohibition shall exist in all cases where a cloud would be put on the title of real estate being sold under an execution against a person, partnership or corporation having no interest in such real estate subject to execution at the time of sale, or an irreparable injury to real or personal property is threatened, and to prevent the doing of any legal wrong whatever, whenever in the opinion of the court an adequate remedy cannot be afforded by an action for damages.
§ 526.030, RSMo