Hello Dear,
As i understood you wanted to develop a script to patch windows server, correct me if i am wrong
and let me know if you want me to develop a script that will check for new patches from your patch repository server/online, check for updated needed, install and reboot. this can be scheduled based on your patching cycle :)
i have 13 years for IT infrastructure experience
Regards
Nitin Galale