I think there may be two ways to do this on .NET
1)
You still have to create a batch program. In fact maybe two of them, one for the info and one for the kill (that you will create on the fly)
-Create a .NET program
-Execute your SQL command to get the Table ID
-run the sdemon -o info command using the bat file
you have to use the System.Diagnostics.Process
you also need to use process startinfo and a StreamReader to get the result (the process IDs with Tables)
read each line of the result and find the the processid until for the TableID you have, when you find it, compose your command. I don't think you can execute SDE commands directly with the Diagnostics Process, so you will have to create a batch file with the command and run it when is created.
2) Use a shell execute command from the program.
run your shell command and send the results to a file (>file.txt")
I have not tried it to see if it will run SDE commands, but I don't see why not. I have not used this in C#, just VB.net, so I don't know the libraries you need to include.
read your file, and get the info you need for your kill command
compose your kill command
run another shell execute statement within the program.
You can save the executable program and put it in the scheduler.