add path windows 10 command line powershell code example
Example 1: add to path windows powershell
$env:Path = "SomeRandomPath"; (replaces existing path)
$env:Path += ";SomeRandomPath" (appends to existing path)
Example 2: add to path windows powershell
setx PATH "$env:path;\the\directory\to\add" -m