https://winaero.com/avoid-accidental-shut-down-or-restart-in-windows-10-with-shutdownguard/
Avoid accidental shut down or restart in Windows 10 with ShutdownGuard