Add path to Path environment variable
ps1
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable('Path', 'Machine')+';C:/rez/__install__/Scripts/rez', [System.EnvironmentVariableTarget]::Machine)
# Add on top of env variables, if not exist
$PathContent = [Environment]::GetEnvironmentVariable('Path', 'Machine')
if ($PathContent -split ';' -NotContains "C:/Python37/") {
[Environment]::SetEnvironmentVariable("Path", 'C:/Python37/;'+[Environment]::GetEnvironmentVariable('Path', 'Machine'), [System.EnvironmentVariableTarget]::Machine)
}