Microsoft Windows services enables you to create long-run executable applications that run in their own windows sessions. It can be run with a specific user account which it should be logged in.
User can create a service as Microsoft Visual Studio project, defining code within it which controls what commands can be sent to the service and what are the actions should be taken when those commands are received.
The commands are start, resume, pause, and stop the service. These custom commands can be executed.