gh_token environment variable powershell

C++
[Environment]::SetEnvironmentVariable("GH_TOKEN","my-personal-token","User") 

Source

Also in C++: