About installing a software.
I think you can learn from the case x11test.d/530_yast_sikuli.pm. Several commands can connected with ';'.
And you can use the skill about "echo banshee installed > /dev/ttyS0" and "waitserial".