Hello,
I can help you as I had same problems in the past. Hope that the VNC connection works ok (without lag) and I also have root access to the machines. So, both are Linux machines with XAMPP and LAMPP (which I understand is an older version of XAMPP). And the scripts are command line based. This shouldn't be a problem.
I put 3 days deadline but I think I can finish earlier.
Thanks,
Florin