I've got an agent that just uses legacy perl 5.0001 ... close but there's no perl by default on windows (although it's easy enough to get on there)
https://github.com/kristopolous/old-agent
I've used it on plenty of old things.
I'd probably do a pure .vbs version if it was windows or a static pure win32 exe.