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.
If a TRO is used to gain advantage in a custody case, there are legal consequences for the person abusing the system.
Hawaii's law on domestic protective orders is found at Hawaii Revised Statutes Ch. 586.
https://www.capitol.hawaii.gov/hrscurrent/Vol12_Ch0501-0588/HRS0586/HRS_0586-.htm