Local environment variables VSCode terminal (powershell)

On windows 10. Due customer requirements I can't set global environment variables nor install nodejs and npm globally. I have to customize vscode settings to have local variables in vscode terminal pointing at node and npm with args, I tried to follows visual studio code documentation but everytime I try to open a terminal with the custom settings (poweshell) I get an error alert "terminated with exit code 1". Is there anyone who have done that who can tell me how to do it or linking me a guide? Thanks.