Input the name of a button and change the background color

Hi,
I have a list, long list, of buttons and I need to change the color of one button depending the value of an input (variable). Is it possible?

The flow should be:

  • Input the name of the button (variable “name”)
  • change the background color of the button “name” in “black”

Thanks for your support.