Every railroad police officer, who is appointed and commissioned as provided in this act, shall have, exercise, and possess, throughout the state, while in the discharge of his or her duties as a railroad police officer, the powers of sheriffs, marshals, constables, and municipal police officers except in the service of civil process. A railroad police officer shall enforce and compel obedience to the laws of this state and to the ordinances of the cities, villages, and townships of this state when engaged in the discharge of his or her duties as a railroad police officer for the company.
MCL 462.377