It seems that you are trying to add cPAddon Scripts in WHM wrong way, I would like to suggest you please refer following tutorial to create a New cPAddon Script
Creating a New cPAddon Script
If you have any issue while creating it please send an email to our support department we will try to create it for you.