Do not try to execute a menu action in non interactive mode.