...
In most cases, automation scripts should take action by assigning value to $WorkItem.SelectedAction property after the work is done.
In addition to the common task properties you can also configure the following properties for an automation task;
...
Scripting Initiate
You may call the WorkItem.Initiate method to initiate other processes.
...