handle the script command in nutcracker