Same behavior that this issue [#883](https://github.com/PowerShell/PSScriptAnalyzer/issues/883) Steps to reproduce ------------------ ```powershell $sb={ Function Get-MyCommand { param( [Parameter(Mandatory=$true,Position=1)] $A, [Parameter(Position=2)] $B, [Parameter(Position=3)] $C ) "Test" } Get-MyCommand Get-ChildItem Microsoft.PowerShell.Management System.Management.Automation.Cmdlet } Invoke-ScriptAnalyzer -ScriptDefinition "$sb" ``` Expected behavior ----------------- The rule is triggered. Actual behavior --------------- This rule does not fire because it only calls the [GetCommandInfo()](https://github.com/PowerShell/PSScriptAnalyzer/blob/010445107423e90907c59e9bac8cc7404785ca19/Rules/AvoidPositionalParameters.cs#L51) method. Environment data ---------------- <!-- Provide the output of the following 2 commands --> ```powershell > $PSVersionTable PSVersion 5.1.14409.1012 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14409.1012} BuildVersion 10.0.14409.1012 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 > (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() } 1.16.1 1.16.0 ```