Your question is both broad and vague. Broad:
I need to write a program that [does X] So what code do I need to write
It must be nice to have others tell you exactly what to do and you just have to copy and paste. Vague:
runs the first process of an application [...] then automatically disables it
What does that even mean?
You need to spend a bit more time thinking, analysing, understanding and researching, then ask specific questions about just the parts that you're having trouble with. Asking us to provide code for the entire application based on those barely coherent requirements is just too much. You probably need to start by working your way through a beginner tutorial to make sure that you understand the basics of the language and the platform. You then need to break the requirements down into parts and tackle each part individually. For instance, the first thing you said was:
I need to write a program that automatically turns on
That is a problem in and of itself so you should tackle that without regard for anything else. You would start by typing appropriate keywords into a search engine to see what you can find. It should be obvious that the code of an application can't be used to start that application so this isn't even really a C# problem. The next thing was:
runs the first process of an application within 30 seconds
Step 1 would be to clarify in your own mind exactly what "the first process of the application" even means and research how to do that without regard for the 30 seconds. If you can't find what you need or understand what you find, then you can post a question here about that issue specifically. You can provide a FULL and CLEAR explanation of the problem, including what you tried and what happened when you tried it, and we can try to help you fix it, not just write code for you to copy and paste without knowledge or understanding. Once you can do what you need to do, then you can think about how to do it in 30 seconds. Etc.
In my opinion, the biggest mistake that beginners make is attacking problems as a monolith instead of breaking it down into parts and attacking each part individually. Many beginners don't even bother to use search engines because they don't know what keywords to use, because there are no keywords to adequately encapsulate such big problems. The smaller and more specific the problem, the easier it is to search effectively for a full or partial solution. This is really just problem-solving 101 - divide and conquer - and nothing specific to programming. Make the effort to understand your problem, do what you can to solve it and then ask about specific issues along the way and you'll find plenty of people willing to help. Ask us to write your application for you and you'll find people less forthcoming.