Run programs as functions in Elixir