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