Lightweight efficient scriptable process manager