The court, after hearing the proofs and allegations of the parties, shall render judgment either that a prohibition absolute, restraining the said court and party from proceeding in such action or matter, do issue, or a writ of consultation, authorizing the court and party to proceed in the action or matter in question.
Wis. Stat. § 783.12