The $env:PSModulePath environment variable contains a list of folder locations that are searched to find modules and resources. PowerShell recursively searches each folder for module (.psd1 or .psm1) files.
Based on this, I made the following structure
C:\my-own-modules
├───Globals
│ Globals.psm1
│
└───Wrappers
Wrappers.psm1
also inspected C:\Users\<user>\Documents\PowerShell\Modules directory and "thought" this directory structure should work.
and I've added C:\my-own-modules to $env:PSModulePath
╰─$env:PSModulePath -split ';'
C:\Users\<user>\Documents\PowerShell\Modules
<some other default paths, excluded for brevity>
C:\my-own-modules # my path is here
But the cmdlets/functions I defined in Globals.psm1 and Wrappers.psm1 doesn't seem to recognized. Even after Import-Module * -Force
Can someone point me what I am missing please? TIA