L
If I do the following , the invoke-vmscript works fine
$code= "
add-localgroupMember -Group 'administrators' -Member 'SG'
"
but if I do with single quote or double quote
$code=@'
add-localgroupMember -Group 'administrators' -Member 'SG'
'@
I get the following error
"No characters are allowed after a here-string header but before the end of the line"