defaulting command if it is undefined in execute_function