pwsh-刷新环境变量 Posted on 2020-12-11 刷新环境变量code $profile 1234function RefreshEnv { $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") Write-host('RefreshEnv')}