Thanks for all the suggestions, obviously this needs work, and I am still a bit new to this. The version of kix is 4.20, kxrpc is 4.1.0, I have a batch script running now to deploy the rpc service to the 9x machines.
I guess I should look more at UDFs to simplify things first, alot of what is in here is from what someone else was doing in a .bat file, so I just duplicated it here (timesync, persistent mappings, etc).
Where is the best place to get more info on UDFs? I'm not exactly sure how they even work at this point...

Thanks again.