Based on this plugin template: https://github.com/don/cordova-plugin-hello
Shell execute function taken from this SO answer: http://stackoverflow.com/a/26654728/1382768
Usage:
shell.execute("hostname", success, failure);
This is very dirty and there is little to none error handling. Use at your own risk.