Unfortunately, “no” to both questions. It is better to use rsh/ssh connection for long running tasks so as to not block console; the same can also be used to script your activities (using host side scripting language).
There are also development kit with C/Perl/Java/C# bindings as well as powershell toolkit available.