A writ of mandamus may be issued to any inferior court, corporation, board, officer or person, to compel the performance of an act which the law specially enjoins, as a duty resulting from an office, trust or station; but though the writ may require such court, corporation, board, officer or person to exercise judgment, or proceed to the discharge of any functions, it shall not control judicial discretion. The writ shall not be issued in any case where there is a plain, speedy and adequate remedy in the ordinary course of the law.
ORS 34.110