how to create a machine level environment variable using powershell code example Example: powershell environment variables set $Env:<variable-name> = "<new-value>"