Severity Level: Warning
Globally scoped aliases override existing aliases within the sessions with matching names. This name collision can cause difficult to debug issues for consumers of modules and scripts.
To understand more about scoping, see Get-Help about_Scopes
.
NOTE This rule is not available in PowerShell version 3 and 4 due to the StaticParameterBinder.BindCommand
API that the rule uses internally.
Use other scope modifiers for new aliases.
New-Alias -Name Name -Value Value -Scope "Global"
New-Alias -Name Name1 -Value Value