How to restart Portainer?

hmm, created a .sh script , if i run the script from ssh terminal it works :

#!/bin/bash
docker restart risco-mqtt-bridge

if i run it from a script that i created with shell command, it gives me error below
any idea?

#shellcommand:
risco-restart: bash /config/python_scripts/risco.sh
2020-01-28 21:21:36 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `bash /config/python_scripts/risco.sh`, return code: 127
NoneType: None