C Sharp Loop Through Array Powershell Update Windows