Writs of habeas corpus ad testificandum may be granted by any circuit court, or any court of record of limited jurisdiction other than a county court, or any judge thereof in vacation, in the same manner and under the same conditions and provisions as are prescribed by this article as to granting the writ of habeas corpus ad subjiciendum, as far as the same are applicable.
W. Va. Code § 53-4-13