A judge of a court having jurisdiction to try criminal offenses shall have the same power to issue warrants as conferred upon a justice of the peace by this article. A mayor or judge of a police court acting in the capacity of a justice of the peace shall have all the powers and duties conferred upon a justice by this article.
W. Va. Code § 62-1-10