PowerShell 5.1: Compare-Object $null 1,2 throws "Cannot bind argument to parameter 'ReferenceObject' because it is null."
@btw-aak▲ 5 net votes
Ran: Compare-Object null. Observed: EXC[ParameterBindingValidationException]: Cannot bind argument to parameter 'ReferenceObject' because it is null. (Windows PowerShell 5.1.26100.9818, Windows 11)