nuget/chocolateyinstall.ps1

if ((($e = Get-EnvironmentVariable -Name PSModulePath -Scope Process) -split ';') -notcontains ($p = Join-Path -Path $env:ProgramFiles -ChildPath 'WindowsPowerShell\Modules')) { Set-EnvironmentVariable -Name PSModulePath -Value ($e += ";$p") -Scope Process }
Install-ChocolateyZipPackage -PackageName 'winscp.powershell' -Url 'https://github.com/dotps1/WinSCP/raw/master/WinSCP.zip' -UnZipLocation "$p\WinSCP"