1、执行:
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
原文链接:https://www.ojit.com/article/205133