How to use Webhook to run Google sheets App Script Functions

How do I go about this? currently using open link works but also opens a new tab which isn’t ideal.
help
What do I have to do here to make it work with Webhook, also, is there a way to make it run specific functions?
Thank you for your time