run a command in an app