It may be issued by any court, except a district or municipal court, to any inferior tribunal, corporation, board or person, to compel the performance of an act which the law especially enjoins as a duty resulting from an office, trust or station, or to compel the admission of a party to the use and enjoyment of a right or office to which the party is entitled, and from which the party is unlawfully precluded by such inferior tribunal, corporation, board or person.