a writ issued by a court of law requiring a person to do something or to refrain from doing something
A written command, issued by a judge, requiring whomever it is served upon to do whatever the order says, under penalty of being held in contempt of court.