i usually copy the script that you need into the command line in maya and then select the script en middle mouse drag it into a shelf