Py revit and Bimlink

I was able to do this using this solution:

But it may depend on the addin you are “connecting” to and you have to find the correct command_id.
To find the command_id, check the jorunal after clicking the button you try to “copy”, or check the “KeyboardShortcuts.xml” in %appdata%\Autodesk\Revit\Autodesk Revit [year]

I tried the .invokebutton bundle, but never got it to work.