Rest_command service call

I have programmed a rest_command to send an http command to my DirecTV Genie box. I call it in a script per the instructions on HA website:

sequence:

  • service: media_player.turn_on
    data:
    entity_id: media_player.sony_bravia_tv
  • service: rest_command.dtv_turn_on
  • service: media_player.turn_on
    data:
    entity_id: media_player.yamaha_receiver
  • service: media_player.select_source
    data:
    entity_id: media_player.yamaha_receiver
    source: HDMI2
  • service: input_boolean.turn_off
    data:
    entity_id: input_boolean.directv
    ‘’’

The command does not execute, though the remainder of the script does. I can call the service manually in hass.io and it works, so I assume my implementation is wrong…? Thanks for any help.