In the following example, clicking a button on a form runs a command line compression utility through a batch file:

function backupButton_onClick

   run ZIPEM.BAT