If the person having such prisoner in custody shall be brought before such officer as for a criminal offense the person shall be examined, committed, bailed or discharged by such officer in like manner as in other criminal cases of the like nature.
Wis. Stat. § 782.36