This tells you that this is an object, because technically it is.
PS C:\Users\Administrator> $arr = @(1,2,3,4,5) PS C:\Users\Administrator> $arr.GetType() IsPublic IsSerial Name BaseType -------- -------- ---- -------- True True Object[] System.Array
Note that BaseType is System.Array
But when you output it using Write-Host , it just tells you that this is System.Object[]
PS C:\Users\Administrator> Write-Host $arr.GetType() System.Object[]
Like this.
So, itβs logical to understand that we can run the following command based on the table above to find out BaseType :
PS C:\Users\Administrator> Write-Host $arr.GetType().BaseType System.Array
source share