xxxxxxxxxx
setx path "%path%;C:\Users\{username}\AppData\Local\Programs\Microsoft VS Code\bin
xxxxxxxxxx
you need to adjust the policy by adding arguments to the powershell.exe command.
for this, open the settings json file in vs code by hit CTRL + SHIFT + P and type "Open Settings (JSON)"
then add the following line:
"terminal.integrated.shellArgs.windows": "-ExecutionPolicy ByPass"
then restart vs code