how to use powershell on windows 10 to change path 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