AddModulePath.ps1
#Save the current value in the $p variable. $ModulePath = [Environment]::GetEnvironmentVariable("PSModulePath") #Add the new path to the $p variable. Begin with a semi-colon separator. $ModulePath += ";C:\GIT_WorkingDir\PowerShellScripts\" #Add the paths in $p to the PSModulePath value. [Environment]::SetEnvironmentVariable("PSModulePath",$ModulePath) |