Cannot Index Into A Null Array Powershell Script Not Running