Powershell Select String Regex Capture Javascript For Loop