Powershell Select String Regex Capture Javascript Foreach