Implement RoleGenerator implemented by a Script.