Powershell Find Index Of String Javascript Program