If the person to whom the writ is directed refuses to obey and execute it, the court or justice may issue a precept to any officer or other person therein named, commanding him to bring the person for whose benefit the writ was issued before such court or justice. The prisoner shall thereupon be discharged, bailed or remanded as if brought in on habeas corpus.
14 M.R.S. § 5535