I never would think that you had not tested your scripts first, before trying to make it into a clickable thing. Test it from a console/terminal first!
So first make your script working.
BTW it should run as root, so just starting it from a user GUI won't work either. Your command inside the icon should be something like
Code:
su /path/to/the/script
and you must be prepared to enter the root passwd, so I think it must be executed in a console/terminal to give you that change. Or use kdesu.