for my application I want to be monitoring the "Status" tab of specific scheduled task on a remote server and perform actions based on that status. ie, run a task if it is not already running, etc.
As of right now, I am launching cmd.exe as a process in C#, psexec'ing that machine's schtasks into a text file, reading that text file, and then I perform the corresponding action.
Are there better ways to do this process (get a specific status of a schtask) that do not involve 3rd party opens-source libs?