User defined output sequence
Normally the stitching of Hugin is controlled by the settings on the stitcher tab and by the settings in the preferences dialog. In this case you can tweak a lot of options at both places, but you can't add additional steps to the processing queue. For this use case the concept of user defined output sequences was introduced.
In an user defined output sequence you can define which programs should be executed. So you can add additional process step or add parameters which are not exposed in the normal stitching engine. In this case the settings on the stitcher tab and in the preferences are ignored. An exception are the projection, field of view and canvas size on the stitcher tab - these are used.
The user defined output sequences are defined in .executor files. The format of these files is described in the file doc/executor_file_format.txt. Hugin_executor, hugin_stitch_project and Hugin can use these files for stitching. (PTBatcherGUI can't handle the user defined output sequences.)
In Hugin you can open an executor file from any directory and stitch with the settings from this file your project. Hugin 2017.0 and later lists the executor files from 2 directories in the menu bar for easier access: from a systemwide data directory and from an user data directory. On Windows the paths are install directory\share\hugin\data and c:\users\USERNAME\AppName\Roaming\hugin, on Linux the paths are /usr/share/hugin/data and ~/.hugindata.