Angularjs Loop Through Array Powershell Update Registry