Powershell Loop Through Array Of Objects In C