Pragmatic scripting framework