Bash Loop Through Array Powershell Update