With Exec you can perform DOS commands as if you ran them in the command line (i.e. cmd.exe). The output will be printed at once, in the end of execution. If the command takes more than 10 seconds to complete, it gets aborted to avoid locking down XChat. If you typed:
You would get something like this:
The source code is available in the repo.