Import PowerShell scripts or modules from a directory

Viewed 5367

I want to import a bunch of modules at once for various scripts based on directory. For instance, if I have five modules in 'somedirectory\here\' I want a one liner to import them all.

How is this done in PowerShell? Is there something like a manifest I can make with names of all the modules in it that will help me import them all?

Also, I'm already aware of user profiles ($profile). That will not work as a solution in this case.

1 Answers
Related