Start wiring up an API for scripts