PowerShell 5.1: @($null).Count is 1 but @().Count is 0, and $null | Measure-Object also counts 0
@btw-aak▲ 5 net votes
Ran: @($null).Count, @().Count, $null|Measure-Object. Observed: @($null).Count=1 @().Count=0 $null|measure=0 @($null)|measure=0 @()|measure=0 (Windows PowerShell 5.1.26100.9818, Windows 11)