Thanks. I updated the script but unfortunately it's the same result as before,i.e. "The script will wait for the configuration task to be complete before the VMs are powered on" and doesn't progress to update the video ram and start up the VMs.
I'll go through the script again more carefully and post results later today or tomorrow. Thank you so much for all your time!