I am trying a script that installs several applications.
choco install nvm;
nvm install 12;
These commands works fine when they ran in separate sessions. After executing choco install nvm; I have to restart the powershell console and execute the second command. How to overcome this? As far I searched I came to know that I have to use 'dotsource'. But I dont know to do this. Any help?