Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 547 Bytes

File metadata and controls

14 lines (8 loc) · 547 Bytes

$MyInvocation.ExpectingInput is $false in DynamicParam

Fixed in v6

In a PowerShell function $MyInvocation.ExpectingInput is supposed to get true if the function is invoked with a pipeline input. This is not the case for the DynamicParam block, it gets false.

The script Test-1.ps1 shows the fact.