Run separate function using button?

Can i run a separate function from our code using cayenne
That is triggered by a button on the dashboard?
The function is a collection of stepper motors, servo, dc motors and pumps

Add a button with channel number 1 to your cayenne dashboard.

do whatever you want
//run the function of stepper motor