I would probably use Python, Go or Powershell.
http://users.eecs.northwestern.edu/~jesse/pubs/caml-shcaml/
Incidentally, that would also dramatically decreased security and maintainability problems.
I would probably use Python, Go or Powershell.