Where do you expect the name of the VM to be shown?
On screen?
In that file?
Not sure what exactly you are doing, you are running a script block on a Windows box from where you do an SSH to a Linux box.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference