Make a scriptable ocaml program?

If you are OK with writing you scripts in Python, pyml is a very good option.