M1 = "MOSFET number 1" (purely a label in the schematic).
NMOS = N-channel MOSFET.
PWM is just a label for the input of a second PWM source for switching the MOSFET on and off. I haven't shown the PWM source, but it could be an off-the-shelf module or a home-brew circuit. This circuit/module...