A writ or process, granted by a court of equity, and,
   insome cases, under statutes, by a court of law,whereby a party is
   required to do or to refrain from doing certain acts, according to the
   exigency of the writ.