Running a shell command when exiting an Elixir script

Would Porcelain.shell/2 or Porcelain.exec/3 help you?