It's a pity, but Kobo browser is not very much reliable ;-(
Sometimes scripts are downloaded ok and everything goes well, but sometimes there are empty downloads (0 bytes file). Sometimes browser is closed after download, sometimes not. I didn't found the reason...
Sample short scripts are downloaded ok (but not always i though) but it seems with longer scripts there are more failed downloads. For example with this script screenshots-off.sh: