Helper to create doit tasks that execute a command