You can run an external program using the CMDExec Command.
It takes two string parameters.
The first is the full path to the external program to run.
And the second holds the command line Parameters for that external program.
Example 1: Use CMDEXEC to run an external IMP Script
CMDEXEC 'c:\irdb\irdbimport' 'c:\irdb\data\externalscript.imp'
Example 2: Use CMDEXEC to run a CMD shell that executes a Python program
CMDEXEC 'CMD.exe' '/C C:\python\traverse.py'