How to Shut Down Your Mac on a Schedule (Without Using Terminal)
Power down your Mac at set times using the Shortcuts app and a time-based trigger.

You can schedule your Mac to shut down using Terminal commands, but you might be a little wary of using commands like "pmset" that you don't fully understand. The alternative is to use the Shortcuts app and a variety of triggers.