Agustin
I've been working on a project to do this, and running arbitrary API code works pretty well. This is an old version of the code, but should do what you want.
If you have trouble getting it working, I'll try to package up something more current.
Download:
http://amped.dnsalias.com:8000/portable.nsd/portable.nsd.tgz
About:
http://www.jsequeira.com/projects/portable.nsd/
John