A script for running EMD from the terminal.