...
To update the modules:
Code Block language powershell Get-Module -ListAvailable -Name "$Name$PowerShellModuleName.*" | ForEach-Object { Update-Module -Name $_.Name }
To install or reinstall the modules:
Code Block language powershell Save-Module -Path "$env:ProgramFiles\WindowsPowerShell\Modules" -Name $Name$PowerShellModuleName -Force