I can reproduce the errors when I download the vmware.hv.helper.psm1 and vmware.hv.helper.psd1 files directly from Github using Chrome then import this module.
I do not see these errors when importing the module from the full powercli-example-scripts zip file (GitHub - vmware/PowerCLI-Example-Scripts ).
I assume the encoding of the module is modified when downloading the module 'standalone' as detailed here (different scenario but same errors) Ampersand not allowed. The & operator is reserved for future use while the encoding is not modified when downloading the full archive.
Regardless, try downloading the full archive & see if that helps.
1 person found this helpful
looking at this it looks like you downloaded the webpage, you can tell by the error
ata-ga-click="(Logged out) Header, go to Features">Features <span cla
Thats html code.
To download it go to
click the green downlaod button and click download zip
Then unzip the file and go to the hvhelper there