Hi @SWAPAC
if you refer to doing the legato application (.wp85.update) as opposed to a shell script, this is a whole different thing.
However, you can refer to another thread about launching a script at startup.
I guess it should help you to address your need to have script to run automatically.
Let me know if it helps