Angularjs Loop Through Array Powershell Execution