Whenever any court or judge authorized to grant this writ has evidence from a judicial proceeding before it that any person within the jurisdiction of the court or judge is illegally imprisoned or restrained, the court or judge shall issue the writ or cause it to be issued though no application has been made.
W.S. 1-27-109