These instructions are current as of 3-18-2024 on Sonoma 14.4, but should work for any prior variant of MacOS.
- Click the Apple icon on the top left of the screen. You may need to push your mouse all the way to the top of the screen to see this menu.
- Select sleep, Reboot, or Shutdown.