Variable as command

You can call external scripts with XRUN, maybe that helps?

Also, to speed up the runtime in general see Increase UI speed - #6 by admin