The Events page of the Scene Settings dialog:
Events are command lines to run at various points in the export process. Enter one command per line, and be sure to quote macro parameters if the expanded values contain spaces.
For a tutorial on how to use this feature, see Running Viewer After a Scene Export.