If a judge of a court of record in any state which by its laws has made provision for commanding persons within that state to attend and testify in this State certifies under the seal of such court that there is a criminal prosecution pending in such court or that a grand jury investigation has commenced or is about to commence, that a person being within this State is a material witness in such prosecution or grand jury investigation and that his presence will be required for a specified number of days, upon presentation of such certificate to any judge of a court of record in the county in which such person is, such judge shall fix a time and place for a hearing and shall make an order directing the witness to appear at a time and place certain for the hearing.
S.C. Code § 19-9-30