Another option is to create a custom "command line sharing" and actually do whatever you want with it by programming a short script.