The governing body of any municipality, by ordinance, may create and establish, as an executive and enforcement function of municipal government, a police force, whether as a department or as a division, bureau or other agency thereof, and provide for the maintenance, regulation and control thereof.