Powershell Loop Through String Javascript Programming Language