Guys, I’ve found a satisfying solution to my initial question:
I’m utilizing MQTT (which is quite nice as a protocol already widely used in the home automation area). “WinThing” is an MQTT client developed in Java to receive all kinds of Windows system commands, including executing a command, opening a URL or shutting down the system. Have a look: