How to kill a running process in MAC OS

I have also found the command which completely remove the client from MAC but I am not able to execute this through action script. Kindly help

Application Name- Forcepoint
command for uninstallation = sudo wepsvc --uninstall
After running the above command it will ask for password which is abc@123

Please support on creating an action script with password

https://www.websense.com/content/support/library/web/hosted/admin_guide/endpoint_mac_uninst.aspx