MQTT Button to Send Command Twice

I’ve successfully set up an IR blaster with MQTT to Home Assistant to control various devices at home. For a projector that I want to control I have made a couple of MQTT button entities for turning it on and off, however, the projector requires me to press the off button twice due to a confirmation message. How can I configure the button entity in Home Assistant so that it will trigger (a script?) that will issue the MQTT command twice with a short delay in between?

- button:
    name: "Projector On"
    command_topic: "cmnd/ir-remote-1/IRsend"
    payload_press: '{"Protocol":"EPSON","Bits":32,"Data":"0xCF20D","DataLSB":"0x304FB0","Repeat":1}'
- button: 
    name: "Projector Off"
    command_topic: "cmnd/ir-remote-1/IRsend"
    payload_press: '{"Protocol":"EPSON","Bits":32,"Data":"0xC728D","DataLSB":"0x304EB1","Repeat":1}'

Create a button template that would execute a script comprised of multiple mqtt.publish service calls