Powershell Loop Through String Javascript Methods W3schools