$env:Path = "SomeRandomPath"; (replaces existing path)
$env:Path += ";SomeRandomPath" (appends to existing path)
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:in", "Machine")
setx PATH "$env:path; hedirectory oadd" -m