There are many situations where an emergency custody order would apply.
In general, most have to do with some event or circumstance causing the parent(s) to be absent, abusive, or neglectful toward the child.
Why not ask your state's child protection agency?