For a court to order that someone either do a specific act, cease a course of conduct or be prohibited from committing a certain act. to obtain such an order, called an injunction, a private party or public agency has to file a petition for a writ of injunction, serve it on the party he/she/it hopes to be enjoined, allowing time for a written response. then a court hearing is held in which the judge will consider evidence, both written and oral, listen to the arguments and then either grant the writ or deny it. if granted the court will issue a final or permanent injunction. a preliminary injunction or temporary injunction is an order made by the court while the matter is being processed and considered, based on the petition and any accompanying declarations, either of which is intended to keep matters in status quo (as they are) or prevent possible irreparable harm (like cutting trees, poisoning a stream or moving out of the country with a child or money) until a final decision is made.