Getting into the Windows recovery menu usually means digging through Settings. I find the command quicker, and it works from any terminal, including a remote session.
The /o switch of the old shutdown command restarts the PC into the Advanced boot options menu. It must be combined with /r:
shutdown /r /o /t 0
/t 0 sets the delay to zero seconds; without it you get the default 30.
A related switch I like even more is /fw. Combine it with a restart and the next boot goes straight to the firmware settings, so no more mashing F2 or Del at exactly the right moment:
shutdown /r /fw /t 0
And if you started a restart with a delay and change your mind, shutdown /a cancels it during the time-out. Combined with /fw it also clears a pending boot to firmware.
The caveat: Microsoft notes that any time-out above 0 implies /f, which closes running apps without warning. So save your work first, especially if you use a delay like /t 60. With /t 0 that /f isn’t implied, and I’d only add it yourself when you’re sure nothing needs saving. My advice is to close your apps first and then run it.
Further reading: shutdown (Microsoft Learn)