How to pass a sensor value to a shell script

Hi,
How do I pass a sensor value to a shell script?

Within configuration.xml I have defined a shell script and I would like to send through a variable to it from a sensor. This is not working

shell_command:
  change_torana_current: /config/change_torana_current.sh {{ sensor.torana_available_charging_current }}

Should be {{ states("sensor.torana_available_charging_current") }}