Help with samsung tv (and linux)

can i have help creating a button in smart things that issues a linux command?

pip3 install samsungctl
pip3 install websocket-client

samsungctl --host --method websocket KEY_POWER

if i can send that as a switch from smartthings, it will turn on/off a samsung tv from a python server. we could then create a devicetype that interfaces with a linux box to issue any keys to samsung tv’s.