Say you rent a game-server from some company, then on your client-side of the web-page they give you the options to start/stop/restart/reinstall the server, which all (I'm guessing) triggers some program on the backend to do whatever it needs to do.
How is something like this achieved, do they have some C#/C++ program running on the backend that is triggered by queries that does what needs to be done?