Added script invocation abstraction