How to run a command via a button

Hi, I have managed to get my MQTT to pull data from my EV but want to now use a command to update the data when a button is pushed.

leaf/{vin}/command/battery #the command

I am new to this and have searched the forum and the helpsheets on HA but cannot find out how to do this from beginning to end.

Can someone guide me?