I would serve the court clerk with a certified copy of the protective order that you have with respect to your "ex" concerning your children issued in another county. I would also consult with a family law attorney as well about your situation.For you to be served with a writ of habeus corpus makes no sense in that type of writ is typically used when someone is incarcerated in jail but no formal criminal charges have been filed against him or her. Writs of habeus corpus are not used in custodial issues, rather they are for criminal matters.