Public/Uninstall-InstallModule.ps1
function Uninstall-InstallModule { param ( [string]$ModuleName ) if (Get-Module $ModuleName) { Remove-Module $ModuleName; Uninstall-Module $ModuleName; } Install-Module $ModuleName; Import-Module $ModuleName; Get-Command -Module $ModuleName; } |