To answer your question (this took me approximately 5 seconds to find by googling your question)
https://msdn.microsoft.com/en-us/library/dd537610(v=vs.110).aspx[
^]
However the way you are using services is wrong. A service is designed to be constantly running, you don't stop and start it as a way of making it work, instead it needs to expose some kind of interface, or have some way of allowing clients to communicate with it to tell it to "do work", eg it can listen on a TCP port, watch a file directory, poll a database, wait for an MSMQ message etc.