apple-ir-control is a command line utility to get and set the enabled/disabled state of the IR remote control on Macs. This is equivalent of System Preferences > Security > Advanced > Disable remote