Import-Module loads a PowerShell module and its commands into the current session. Provide the full path when testing a specific module version or loading code outside standard module locations. section 10.2
Use these practices when developing or testing modules:
- Run Remove-Module before loading another version, or use Import-Module -Force to overwrite existing commands. section 10.2
- Reload after editing because PowerShell runs the imported module from memory rather than rereading the file automatically. section 10.4
- Test in a standard PowerShell console so the execution environment matches production more closely. section 10.4
Reload a changed module
Import-Module ScriptingMOL -Force section 10.4
$env:PSModulePath
Inspect the module search path when deciding whether Import-Module can discover a module by name. section 10.4

