Use Erlang OTP framework  to manage execution of external scripts.