Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepowershell
$Modules, $DependencyModules$Dependencies = (Get-Module -Name "$PowerShellModuleName.*").Where({$_.Name -notin $DependsOnModuleNames},[System.Management.Automation.WhereOperatorSelectionMode]::Split)

...

Code Block
languagepowershell
$Modules | ForEach-Object { Remove-Module -Name $_.Name -Force }; $DependencyModules$Dependencies | ForEach-Object { Remove-Module -Name $_.Name -Force }

...