SECTION 22.  MANDAMUS.
   In all cases where any individual, association of individuals or corporation has obtained or shall obtain any right, privilege or franchise to operate a street car line, lines of cars in whole or in part upon the streets, roads or alleys of the municipality, or to furnish to such municipality or the inhabitants thereof water, gas or electricity, or to construct or operate a telephone or telegraph system in any such municipality, and the terms, conditions or manner of exercising such right, privileges or franchises are embodied in the ordinance or resolution of the municipality, or are otherwise, either voluntarily or by law, imposed or assumed by said individual, association of individuals or corporation, then and in each of such cases the circuit court of Mineral county shall have power by mandamus to compel such individual, association of individuals or corporation and their assigns, to use and exercise such right, privilege or franchise in accordance with the terms and conditions and in the manner prescribed in said ordinance or resolution or otherwise lawfully so defined or assumed, and to do and perform each and every obligation and duty attached to such right, privilege or franchise, whether or not such obligation and duty be voluntarily assumed or by law attached thereto or imposed thereby.
   Such mandamus may be awarded at the instance of the municipality in its corporate name, or at the instance of any taxpayer or taxpayers; and the forgoing remedy by mandamus shall not be construed to deprive such municipal corporation, or any inhabitant thereof, of any other remedy given by law to compel such individual, association of individual or corporation to comply with the terms, conditions and agreements of such right, privilege, or franchise, or of the right to recover damages for their failure so to do, or to effect, remove or lesson the liability of such individual, association of individuals or corporation, to forfeiture of such right, privilege or franchise for failure so to use and exercise such right, privilege or franchise.