'Powershell Get-Module -ListAvailable not showing my module after import

My powershell module has versioning i.e. it's installed in: c:\program files\WindowsPowerShell\Modules\MyModule\4.0\MyModule.dll When I open powershell ISE I can use it normally and when I run: Get-Module -ListAvailable I can see it.

After using one cmdlet from my module, I can't see it anymore in the output of: Get-Module -ListAvailable

It's worth mentioning that when I move my module to: c:\program files\WindowsPowerShell\Modules\MyModule\MyModule.dll it's working.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source