As above.
I tried (inside powershell terminal with run as admin)
[System.Environment]::SetEnvironmentVariable('ResourceGroup','AZ_Resource_Group')
and the variable is only available for that window. If I open another powershell window or restart my PC, the variable is lost.
Thanks