Boot into advanced startup menu Windows 10
Solution 1:
Just create a new shortcut with:
shutdown.exe /r /o /f /t 0
shutdown /?
/r Full shutdown and restart the computer
/o Go to the advanced boot options menu and restart the computer.
/f Force running applications to close without forewarning users.
/fw Combine with a shutdown option to cause the next boot to go to the firmware ui.
/t xxx Set the time-out period before shutdown to xxx seconds.
Update:
OP mentioned his laptop is crashing and can't even boot, so the original question is deceiving.
For that case, this would be more fitting answer:
You just have to keep at it.
Because it's a laptop, it's harder since you don't have a reset button.
After Power ON keep holding the button pressed until shutdown.
It's needed 3 times, and timing is everything.
If still unsuccessful you should check out your laptop manual and find what key brings you to BIOS/UEFI setup. Then spam that key as soon as you hit the power button. Once in BIOS/UEFI, disable any Fast Boot options.
Another solution would be to connect an external keyboard - it's usually more reliable.
And finally, connecting a bootable device such as a dvd or usb stick can also break the loop. There is probably also a hotkey to launch a boot menu, such as ESC, F1, F2, F8, F11, F12.