Fix false positive of AvoidAlias rule for implicit aliasing of Get- commands for the CommandType ExternalScript by bergmeister · Pull Request #1386 · PowerShell/PSScriptAnalyzer

PR Summary

Fixes #1369
Unfortunately this issue could only be reproduced when PSSA is hosted within PSES where the root of the workspace becomes the working directory of the runspace pool, which causes Get-Command ..\PathToScript.ps1 to return a command type of ExternalScript, which then makes it into the command cache and causes the false positve.
The fix is to search only for cmdlets/functions where the implicit Get- aliasing applies.

PR Checklist