A judge of a state court of record in another state, which by its laws has made provision for commanding persons confined in penal institutions within that state to attend and testify in this state, may certify (1) that there is a criminal proceeding or investigation by a grand jury or a criminal action pending in the court, (2) that a person who is confined in a penal institution in this state may be a material witness in the proceeding, investigation, or action, and (3) that his presence will be required during a specified time. Upon presentation of the certificate to any judge having jurisdiction over the person confined, and upon notice to the attorney general, the judge in this state shall fix a time and place for a hearing and shall make an order directed to the person having custody of the prisoner requiring that the prisoner be produced before him at the hearing.
Utah Code § 77-33-2