Are these batch files going to be reused in the future? If not, perhaps it would be best to do away with this mode of operation altogether and switch to using Win32::Process or something.
perhaps it would be best to do away with this mode of operation altogether and switch to using Win32::Process
The batch files are sent to a remote machine and executed there independently, at some unspecified later time. The remote execution mechanism *expects* Windows batch files.
Basically, the only assumption we have on the remote machine is that it is a standard Windows system which can execute batch files.