Virtualmin - How to run a command after create/modify an apache vhost?

I need to know the steps to run an script (script.sh)
I have added the path of the script to “Command to run after making changes to a server” but it never run…