I'd put in a check for 'skip if already patched' and what to check for.

Certain patches are for certain OSs... might want to filter inappropriate ones out

would this remotely execute or task schedule the patch?

you would probably need to generate specific logs, patch successful, patch not needed, patch error, computer unavailable...
_________________________
How to ask questions the smart way <-----------> Before you ask