Integrate “execute shell ” into my system?

Greetings,
How do i? Integrate “execute shell ” into my system?
No.1 : post:http://192.168.4.101:8080/v2-beta/projects/1a7/containers/1i3/?action=execute
get ws connection string.
No.2 : ws connection
ws://[ip]/v1/exec/?token=eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjYXR0bGUiLCJob3N0VXVpZCI6IjQ4M2U1NzcxLTVkNzQtNDJlNy02OTFlLTBjZDY3MWY0NjIyMCIsImtpZCI6ImRlQNyd6pw
No.3 : What should I do then?

The command to execute goes in the action body, and then when you connect to the WebSocket the command is executed and input/output piped through the WebSocket. Frames are base64-encoded, because binary websockets are a pain.

Thanks a lot ,have a try