At or after the time the plaintiff files the application for writ of possession, the plaintiff may apply for a temporary restraining order by setting forth in the application a statement of grounds justifying the issuance of such order. (CCP 513.010)
If the court determines the plaintiff is not entitled to a writ, the temporary restraining order shall be dissolved. If the court determines a writ is to be issued, a preliminary injunction may also be issued until the property is seized.