Around these parts, his lawyer in Count B would ask the court to issue a writ of habeas corpus, and serve it on the Sheriff.