Call custom Batch Task from custom application that creates Studio projects

Hi,

I have programmed an application that creates Studio projects. Files are added, PerfectMatch will be applied and the pretranslation will be made. 

Now it is necessary to do some custom actions. For example I need to unlock all segments after the pretranslation. I have created a custom Batch Task for this. I can apply this when I use the GUI, but is it possible to call the Batch Task somehow by my custom application that creates the projects?

Something like this would be nice: 
project.RunAutomaticTask(targetFiles.GetIds(), MyCustomBatchTask);

I hope it is clear what i mean.

Thanks in advance
Andre