Whenever it appears by satisfactory evidence that any person is illegally imprisoned or restrained and there is good reason to believe that the person will be carried out of the state or suffer irreparable injury before the person can be relieved by the issuing of a habeas corpus, any court or judge authorized to issue such writ may issue a warrant reciting the facts, directed to any sheriff or other person therein designated, commanding the sheriff or other person to take such illegally imprisoned or restrained person and forthwith bring the person before such court or judge, to be dealt with according to law.
ORS 34.380