You can either create an executable that accepts parameters as a means to call your method or you can create a COM Handler using my template (https://taskscheduler.codeplex.com/releases/view/29938) as an independent DLL assembly that contains your method and then use the COMHandlerAction to invoke it from the task.
↧