https://winaero.com/fix-windows-10-reboots-restarts-instead-of-shutting-down/
Fix Windows 10 reboots (restarts) instead of shutting down