Run external SH file at startup

I am trying to run a SH file at startup of Kodi. I know I can use autoexec.py but I get an error every time. Not sure what I am doing wrong. Can anyone help me out. What should go in the autoexec.py file to execute a SH file named “update.sh” and located in my userdata folder…