Applies a command to the image and pages as specified by the scanning session ID.
id
Scanning session ID
firstPageNumber
First page to process
lastPageNumber
Last page to process. Pass -1 to process pages inclusively starting with firstPageNumber to the last page.
commandName
Name of the command to run
arguments
Arguments passed to the command to be run
userData
User data object