the Get-DotNetVersion is not exported by 2.2.5.1, is only exported by previous version:
Update-Module -Name DotNetVersionLister;
Get-Module;
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 2.2.5.1 DotNetVersionLister
Script 2.2.4 DotNetVersionLister Get-DotNetVersion
Install-Module -Name DotNetVersionLister
Get-DotNetVersion -LocalHost
Get-DotNetVersion : The term 'Get-DotNetVersion' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
It is of course possible to download the psm1 file, import it and it works as expected:
Import-Module c:\DotNetVersionLister.psm1
Get-DotNetVersion -LocalHost
etc.. works fine.