System Object Array Powershell Script If Statement