Injunction
noun
a formal command or admonition
noun
(law) a judicial remedy issued in order to prohibit a party from doing or continuing to do a certain activity
“injunction were formerly obtained by writ but now by a judicial order”
Similar: enjoining, enjoinment, cease and desist order