If the act sought to be compelled to be done is a discretionary act, a writ of mandamus commands the exercise of the discretion, but does not command its exercise in a particular manner.
A writ of mandamus is now known as a constitutional writ, and not as a prerogative writ (Re Refugee Review Tribunal; Ex parte Aala).
A writ of mandamus is distinct from:
A writ of certiorari (which is a remedy granted when a duty has already been performed, usually to quash a decision made and which is an ancillary remedy).
A writ of prohibition that has a negative aspect and prohibits a decision maker from the decision maker, and those relying on the decision, from continuing a course of action.