The writ of mandamus may be issued by the Supreme Court or the district court, or any justice or judge thereof, during term, or at chambers, to any inferior tribunal, corporation, board or person, to compel the performance of any act which the law specially enjoins as a duty, resulting from an office, trust or station; but though it may require an inferior tribunal to exercise its judgment or proceed to the discharge of any of its functions, it cannot control judicial discretion.
Okla. Stat. tit. 12, § 1451