Thanks for sharing this cool idea. This begs the question in my mind whether the SA818-prog script could be adapted to have an "unattended" mode, so that it could be reused for this type of programmatic call.
Just a note, if you already have the radio programmed once, you probably don't need to call SETVOLUME, SETTAIL, and SETFILTER every time, since that data is not changing.