Need help trying to get Remote Mega Downloads working through HA

Hey there,

I have a batch script I got working with MegaCMD to start remote downloads on my plex server with:

%LOCALAPPDATA%\MEGAcmd\mega-get %1 B:\Downloads\files`

and I got this working with triggercmd but I want to try to get it to work with an input text help in HA. I used the following for a restful command:

triggercmd_apmegadownload:
    url: 'https://www.triggercmd.com/api/run/triggerSave'
    method: "post"
    content_type: "application/x-www-form-urlencoded"
    payload: "trigger=Mega%20Downloadt&computer=Server&token=(my_user_token)&params=(yourParams)"

How Can I go about get HA to send an input text url to this script to start the download on the server?