$env can only change the path for the CURRENT process. That’s a Windows thing. Take a look at the discussion at http://powershell.org/wp/forums/topic/invoke-command-to-set-psmodulepath/.
↧
$env can only change the path for the CURRENT process. That’s a Windows thing. Take a look at the discussion at http://powershell.org/wp/forums/topic/invoke-command-to-set-psmodulepath/.