PHost and some add-ons include a message transponder which reacts upon special messages. You send these messages normally using your client program, and the receiving program will read them and evaluate them.

For PHost, you send a message to yourself and include the commands.

Certain add-ons, for example Unity, expect you to send the message to the Host.