Probably would be better to turn off the auto reboot feature from updates. That's what I do to prevent my game servers from rebooting automatically (although they do for "feature" updates. Then I can just do it when convenient.
Otherwise, something like
https://www.autoitscript.com/site/ might be useful to you.