Help mi plz

guys how to assign a command to turn on switch.led when answering telegrams through buttons:

data:
 inline_keyboard:
 - 'Task  On:/command1, #switch.led on

Task Off:/command2' #switch.led off

how to do it (see the comments in the code)