The predefined tasks are actually the Workflow Designer schemas stored in the $UGENE/data/cmdline directory.
Follow the instructions in the Workflow Designer Manual on how to create a schema and to run it from the command line.
You may also find useful the following video tutorial devoted to the creating of a custom console command: