Powershell Loop Through String Javascript Substring Syntax In Sql