How do I run a script after renaming a collection in the Outliner?

Hi man,
you can make the script an operator, and give him a shortcut !
check out this answer Quickly accessing a script