Rhinomacro in a Rhino Command Button

Hello,
is it possible to get an input in rhino command button as a rhino macro?

Thank you