Why does PowerShell unwrap PSObject wrappers differently for array[] and object[]?
I'm trying to understand two related PowerShell behaviors. These functions receive the output of Get-ChildItem: function Test-Weird1 { param([array[]]$InputObject) $obj = $InputObject[0][0] $obj.GetType().FullName ($obj -is [PSObject]) } function…