/plan see clone_script function, you will need to replace * SELECT with specific fields matching Script struct. Request made by @pyranota