In Script Editor >File > open (Open your script)Select all of the script (ctrl +A)Middle mouse click and drag it to your custom Shelf!