The ExeCommand class is accessible via the paste.script.exe module.
'Use this at the top of files like:\n\n #!/usr/bin/env /path/to/paster exe subcommand <command options>\n\nThe rest of the file will be used as a config file for the given\ncommand, if it wants a config file.\n\nYou can also include an [exe] section in the file, which looks\nlike:\n\n [exe]\n command = serve\n log_file = /path/to/log\n add = /path/to/other/config.ini\n\nWhich translates to:\n\n paster serve --log-file=/path/to/log /path/to/other/config.ini\n'
See the source for more information.