The commission shall have the right, and it is made its duty, to file suit against any person or corporation in any court of competent jurisdiction by mandamus proceedings to compel compliance with the provisions of this act or any order of the commission or, by injunction proceedings, to prevent violations of this act or any order of the commission.