Iterate String Array Powershell Foreach Continue Javascript