It is possible to run a CL command from your CL-programs on the IBM i (AS400) platform. If you want to do that, then you should check out this section for the prerequisites.
InterFormNG2 is shipped with two predefined commands, that are both quite generic as you can freely define exactly what the commands do in the referenced workflows.
The two commands are:
1.IFORMNG2/NG2CMD. This command is the most generic and you can in principle use this for any functionality, that you want.
2.IFORMNG2/NG2CPDFEML. This command is prepared for generating an email with an attached PDF.
Both commands do nothing unless you create a workflow to match them and the parameters, that you have setup.
The most important thing is, that you refer to the path of the workflow in the first parameter of the commands: NG2 endpoint (COMMAND field).
The parameters of the commands are mapped into workflow variables.