A Temporary Restraining Order is the initial order issued by the court upon its initial review of the petition for an order of protection. The TRO expires either on its own by operation of time or at court, where it is either dissolved or replaced by an Order for Protection. Most people use the term TRO to mean both the temporary order and any Order for Protection.
A TRO or OP is not intended to be used to get an advantage in a custody case. It is for the protection of the petitioner from abuse, whether physical or psychological. The judge will evaluate at hearing whether the abuse has occurred and if so, if an order is necessary to prevent it from happening again.