How to ask the court for a temporary restraining order, temporary injunction, and temporary orders during a child custody emergency. An emergency custody order is a courtmandated order that is used to protect minors from perceived or real harm or abuse while in the care of a parent.This article tells you about temporary orders and temporary restraining orders (TROs) in family law cases. To give someone temporary custody of your child in Texas, you must first file a petition with the court requesting the transfer of custody. You'll need to file those forms with the Court in the county where your child lives. Forms for use in the District Courts. How to Get Temporary Custody: You must file an affidavit detailing the immediate danger to the child, along with a proposed temporary order. If the risk is severe, an 'ex parte' hearing may be granted without the other parent present. There are two primary forms of emergency custody orders. CALL FOR A CONSULTATION 7132256200 or Fill Out the Form Below.