Check out example codes for "c# run a scheduled task". It will help you in understanding the concepts better.
Code Example 1
using (TaskService tasksrvc = new TaskService(@"\\" + servername, username, domain, password, true))
{
Task task = tasksrvc.FindTask(taskSchedulerName);
task.Run();
}
Learn ReactJs, React Native from akashmittal.com