Mandamus

A writ which commands an individual, organization, or court to perform a certain action, usually to correct a prior illegal action or a failure to act in the first place.