How to create, set and update a permanent environment variable for Linux in PowerShell Core. The following solution works properly, but only when I run the script on Windows:
[Environment]::SetEnvironmentVariable("Variable", "Value", "Machine")
How to create, set and update a permanent environment variable for Linux in PowerShell Core. The following solution works properly, but only when I run the script on Windows:
[Environment]::SetEnvironmentVariable("Variable", "Value", "Machine")