Powershell Select String Count Python Method Chaining Javascript