attempting to fix issue with Remove-Chocolatey
attempting to fix issue with Remove-Chocolatey

I think the “powershell” provisioner for packer takes the script you
give it then saves a copy to C:\Windows\Temp\script.ps1 on the vm
(based on the log readout)  I think it might be placing the ~ line
continuation character in the wrong spot on the temp script causing
issues. Get the following error (At C:\Windows\Temp\script.ps1:5
char:87 lue('PATH', '',Â  `).  I made one massive one liner instead…
Trying this out to see if it works

robbiepc30/PackerTemplates