HA script commands

Ok, there are a couple ways to do that.

If you are just starting out, and want to use the visual editor, you will probably want to use the Choose action and Trigger IDs.

alias: New Automation
description: ''
trigger:
  - platform: state
    entity_id: input_boolean.test
    to: 'on'
    for: '00:00:03'
    id: On
  - platform: state
    entity_id: input_boolean.test
    to: 'off'
    for: '00:00:03'
    id: Off
condition: [] 
action:
  - choose:
    - conditions:
        condition: trigger
        id: Off
      sequence:
        - type: turn_off
          device_id: 20b995602s83et23b564926e3bf776d97cd
          entity_id: light.wand_lamp_1
          domain: light
    - conditions:
        condition: trigger
        id: On
      sequence:
        - type: turn_on
          device_id: 20b995602s83et23b564926e3bf776d97cd
          entity_id: light.wand_lamp_1
          domain: light
    default: []
mode: single

You could also use templates and trigger variables to create a much more compact automation, but it has to be done using the yaml editor.

alias: New Automation
description: ''
trigger:
  - platform: state
    entity_id: input_boolean.test
    for: '00:00:03'
condition: [] 
action:
  - service: light.turn_{{ trigger.to_state.state }}
    entity_id: light.wand_lamp_1
mode: single

EDIT: I inadvertently left out a few colons, I believe they are all fixed now