Powershell Loop Through String Javascript Program