This will work with any macOS from Catalina and above.
Continue reading “How to setup sleep and wake schedule on your Mac using Terminal”How to Schedule Mac to Sleep/Shutdown now Energy Saver Schedule has been removed since Ventura.
On macOS Ventura and above, the Energy Saver settings (including scheduling) have been moved and slightly renamed due to the redesign of System Preferences into System Settings.

