As a less cool but possibly faster hack, you could take the remote apart and solder wires to the button connection points and Espruino pins. Then it should just be a simple matter of sending a '1' to the pin to activate that function. Of course, doing it this way you don't learn as much about the underlying remote control operation.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
As a less cool but possibly faster hack, you could take the remote apart and solder wires to the button connection points and Espruino pins. Then it should just be a simple matter of sending a '1' to the pin to activate that function. Of course, doing it this way you don't learn as much about the underlying remote control operation.