Passing data to a script and then using it in the script

I am new here as well new to HA. I tried searching before posting here but couldn’t get it working. I am trying to write a script to send notification using Google Voice. I need help on passing value to the script and using that value in the script. I want to call this script with different messages so basically I need to pass message string to this script and script will send notification to the one my phone with provided message. I could not figure out how to pass the data to script when making a call and then in side script how to access that data. Any help please?
Thanks a lot.