To obtain an how to get an emergency child custody order in virginia, you generally need to file a petition with the Juvenile and Domestic Relations District Court. You must demonstrate to the judge that the child is at risk of harm or danger, providing credible evidence and testimony to support your claims.