Um, then why do you expect porting things to help?

Or why not just say in the first place -- how can I run this on a Kobo?
On my Kindle, it is easy to create a KUAL menu extension which runs a shell command -- already used for several GUI apps.
I assume the Kobo world has some similar functionality, though having never owned a Kobo, I haven't got a clue what the specific implementation details are.