That should be very straightforward, but is something you'd want to put together as its own command set. Assuming no more advanced control interface (Plex, XBMC, etc.) and that you're just using something like telnet, a custom command set for that could be something like
<code>
<dict>
<key><span style="color: #00ffff;"><strong>.AUTH 1 FORMAT</strong></span></key><string>Login</string>
<key><span style="color: #00ffff;"><strong>.AUTH 2 FORMAT</strong></span></key><string>Password</string>
<key><span style="color: #00ffff;"><strong>RUN SCRIPT 1</strong></span></key><string>./myscript.sh</string>
<key><span style="color: #00ffff;"><strong>RUN SCRIPT 2</strong></span></key><string>wopr.sh</string>
</dict>
<key><span style="color: #00ffff;"><strong>method</strong></span></key><string>lineio</string>
<key><span style="color: #00ffff;"><strong>cat</strong></span></key><string>Linux</string>
<key><span style="color: #00ffff;"><strong>brand</strong></span></key><string>Custom</string>
<key><span style="color: #00ffff;"><strong>type</strong></span></key><integer>1</integer>
</code>
Custom command sets are documented in the DDK:
roomieremote.com/faq/#customDevice
Thank you.