In my Powershell script I'm setting machine-level environment variables with:
[Environment]::SetEnvironmentVariable("MY_VARIABLE", "MY_VALUE", "Machine")
Inside this same script, I am calling another application that will look for the variable above. Is there a way for me to reload the current session with the variables I created above?