A justice of the peace may issue a subpoena for a witness to any county, in a criminal case, and enforce obedience thereto.