Add Shutdown to REST API commands

Yes sure!
Actually, the example by ashthespy says more or less everything that is important:
the url that needs to be connected to, and the format of the message to be sent.
Of course, I can only speak for using Godot, since that is what I am using.
In that case, follow the websocket example:

And replace the url with the url, and put the desired message to send to the server in put_packet() function (as text)