Powershell V2 – CannotIndex error when working with arrays

Ever had the cannotindex runtime exception when working with powershell arrays? I present the following situation: Create three .txt files and verify their creation with get-childitem *.txt. PS C:\Users\administrator.HOMELAB> echo 1 > 1.txt PS C:\Users\administrator.HOMELAB> echo 2 > 2.txt PS C:\Users\administrator.HOMELAB> echo 3 > 3.txt PS C:\Users\administrator.HOMELAB> Get-ChildItem *.txt     Directory: C:\Users\administrator.HOMELAB Mode                LastWriteTime     Length […]