How to uninstall software using script?

How to uninstall software using script?

I have a script to uninstall Sophos virus guard from computers. How I can use it to uninstall Sophos through Desktop Central?