Execute program programmatically
This is more of a LabView answer than a Mindstorms answer, but you should be able to create a SubVI that represents a task, and then you can place that in the main VI.

This help document might be useful:
http://zone.ni.com/reference/en-XX/help/372962A-01/lvnxt/creatingusingsubvi/