Typically you have to have a change of circumstances which usually takes more than a couple days. Here however you may be able to get an ex parte custody order but do this, get an attorney this time. This assumes he goes to jail though. Talk to an attorney regardless. Maybe you have grounds for an appeal but there are time limitations for filing one.
Sign up to receive a 3-part series of useful information and advice about child custody law.