Had some time today and I decided to work on this a bit... here is the core function that creates the WTS new task ...
it should be called by commands to create reminders, alarms and other schedules ...
it takes 4 payloads .... (see description in the command) to test it see the second command ...
Sub folders can be created by passing them along with task name in payload 1
{1} = alarms\alarm 1 will create subfolder called alarms and create a task called alarm 1
Edit: Command has been revised, changed the sequence of payloads passed to tsksch.exe in order to make payload(s) passed with VC event optional (if no payload specified to be passed with VC event, event will trigger with payload 1 = nill) ... reset lastresult to avoid reporting false success.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.3-->
<command id="604" name="Create Windows Task" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="All tasks will be created in iHome\VC
{1} Windows Task Name 
{2} schedule ( ex: weekly /d WED see http://technet.microsoft.com/en-ca/library/cc772785(v=ws.10).aspx#BKMK_create)
{3} VC event name 
{4} payload(s) to pass (multiple payload must be passed as one string, & signs must be quoted like in PL 1"&""&"PL 2) - optional
">
<action>
<cmdType>Launch.Capture</cmdType>
<params>
<param>C:\Windows\System32\schtasks.exe</param>
<param>/create /tn "\iHome\VC\{1}" /sc {2} /tr "\"{Path.VC}\VoxCommando.exe\" -33000 \"VC.TriggerEvent"&""&"WTS.{3}"&""&"{4}\""</param>
<param>True</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="True">
<ifType>(A)Contains(B)</ifType>
<ifParams>{LastResult}&&SUCCESS</ifParams>
<then>
<action>
<cmdType>VcAdvanced.Log</cmdType>
<params>
<param>task creation failed</param>
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>VcAdvanced.Log</cmdType>
<params>
<param>Success</param>
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<action>
<cmdType>Results.SetLastResult</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
<event>WTS.Create</event>
</command>
----------------------------- command to test task creation ( LCB allow 3 payloads and command need 4) -----------------------------
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.3-->
<command id="629" name="test task create" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>WTS.Create</param>
<param>Alarm\6</param>
<param>weekly /d WED</param>
<param>Alarm</param>
<param>PL 1"&""&"PL 2</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>