Though @user7221 pointed out to me that Momentary Button drivers should just add the Switch capability, to make it selectable in Rule Machine as a switch, revealing the push() command as an option..
For any custom app that does not add the switch capability to the driver, this might be useful. Or just use Webcore, which will let you use a Momentary button that only has the Momentary capability without switch.