Outgoing webhook or slash command for a linux command


I have no programming experience at all, so please don’t shoot :slight_smile:
Could somebody help me how to run one of the below commands in /slash option in mattermost or in outgoing webhooks?

docker exec -it apprise apprise --body=“Test Message” --tag=mytag --config=
curl -X POST -d ‘{“tag”:“mytag”, “body”:“test message”}’ -H “Content-Type: application/json”

I tried to to put them into sh file and execute with post command in slash screen, but without any luck.

Thank you

I have had a script run every minute out of cron that would get the latest message from a mattermost channel and run a command if it exists. It does require some scripting knowledge however.