Powershell Loop Through String Javascript Methods For Querying