Add module path to environments

Hey

How to I add a module path to an environment?

Mike

You can use the PSModulePath setting to append paths to the environment variable. In current versions it’s in the UI and otherwise it has been on the New-PSUEnvironment cmdlet as -PSModulePath.

Strange - it does not load the modules specified in -psModulePath

It works if I import the module directly in the script.