If you don’t want to interact with the confirmation dialogue when shutting your Mac down or restarting, hold the option key down and press Return on one of these options from the Apple menu.
If you don’t want to interact with the confirmation dialogue when shutting your Mac down or restarting, hold the option key down and press Return on one of these options from the Apple menu.