Could you share this script?
Also how is your experience with actually using the VM? Can you get most/all of the GPU resource? Is it fully passing the GPU through?