The following code was copied right out of
$A = Get-Member - InputObject @(1) $A.Count 1 $A = Get-Member -InputObject 1,2,3 TypeName: System.Object Name MemberType Definition ---- ---------- ---------- Count AliasProperty Count = Length Address Method System.Object& Address(Int32 ) Clone Method System.Object Clone() ... $A.Count 1
When I run these same 4 commands in succession on my PC using either PS ISE (PS 5.1) or VS Code (also PS 5.1) I get the answer ‘34’ in all cases of
I am totally lost at this weird result. I also do not get the output of the 3rd command where the TypeName, etc. object info are displayed.
Would be grateful for any advice, tips or suggestions.