You are missing a closing brace at the end of the script.
Does your CSV contain a column with the name VMname?
The CSV should look something like this
VMName
vm1
vm2
vm3
You are missing a closing brace at the end of the script.
Does your CSV contain a column with the name VMname?
The CSV should look something like this
VMName
vm1
vm2
vm3