According to Setting Windows PowerShell environment variables it is possible to modify environment path in Powershell with
$env:Path = "C:\jdk-16.0.1\bin" + ';' + $env:Path I tried (with admin rights) and checked $env:Path : it's ok
But if I close and reopen powershell, it's gone so did I miss something ?
[Environment]::SetEnvironmentVariable()to persist env vars, as detailed by this answer.$env:Path = ...to your$Profilefile. See stackoverflow.com/a/714918/7571258