I’m pretty sure you can turn these off with local group policy. And if you can, I’m sure someone will make a script to do it for you.
Personally, I set up AD for my own devices a long time ago, when I got pissed off about Windows 10 rebooting my PC while I’d stepped away to eat dinner and killing everything I had open. So I also use it to set group policy to turn off things like this. But this is far overkill for the average person.