If any railroad company, county, municipality, or officers thereof, or other person, shall fail, neglect, or refuse to perform or discharge any duty required of it or them under this chapter or any order of the commission, the performance of such duty may be compelled by mandamus, or other appropriate proceeding, prosecuted by the attorney general upon request of the commission.