So what exactly does the script do? Can you share?
To automate the login and logoff process to VDI Pools on repurposed computers.
Have look here, heaps of advice on config and scripts http://communities.vmware.com/community/vmtn/desktop/view/pcrepurposing
More details and great post by ForgeFlakshack
We are currently running 8 repurposed classrooms in this format, works great.
cheers