Vagrant Install-ChocolateyInstallPackage: $File parameter not recognized
Due to the fact that you are using “splatting” of the PowerShell parameters, you have to use a slightly different syntax when actually using the packageArgs
variable.
You should be doing this:
Install-ChocolateyInstallPackage @packageArgs
Rather than:
Install-ChocolateyInstallPackage $packageArgs
Have a look here:
For a complete example.