Shell commands. How?

What does
chmod +x /path/to/homeassistant/bash/curtains-close.sh
in the host terminal do?

What does this do in automations

    condition: []
    action:
        - action: shell_command.curtains_close
    mode: single

Personally I have this working