Add GetScript method to Executor class