added option to run a command when starting a pilot (e.g. mpdboot)