PSModulePath contains the directories PowerShell searches for modules. Checking it helps you choose where to save a module so PowerShell can discover and load it automatically. section 10.2
Use the path list to make module placement predictable:
- Inspect the directories with $env:PSModulePath -split ";". section 10.2 section 10.4
- For production, place a module beneath a listed directory, using a subfolder and filename that match the module name. section 10.2
- Use a Documents-based module path for experimentation, reserving Program Files locations for production modules. section 10.2
$env:PSModulePath
Inspect the directories PowerShell searches before troubleshooting module discovery. section 10.4

