How can I get this command to work with a command button.

I need it to sync the replicas.
I don't know how to code the button for this

thanks