Color Gradient script?

 From:  amur (STEFAN)
9676.38 
Thank you so much Michael, much appreciated!!!

But I must admit I don't know how to set up a correct shortcut to trigger the command. :-(

I remember that from v3 with other scripts, but now with v4 I am lost, even if the UI is the same.

Best regards
Stefan