Can we customize a RIR definition as a popup button in Revit?

In Rhino, you can alway save a python script as a button and put it onto the popup toolbar. Can we do a similar thing in Revit?
So I can save a few frenquent use commands as buttons.

Pyrevit will do that. Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.

Thanks Scott, I will have a study on it.

Ehsan does pyrevit. He also works on rhino. So if you have questions, contact him.

OK, thanks