docker run -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap-baseline.py -t
https://www.example.com -r testreport.html
If you dont want to use docker then that command also generates a zap.yaml file which works in the Automation Framework.
It needs some tweaking so I've done that - see attached.
That can be run using the command:
zap.sh -cmd -autorun /full/path/to/example.yaml
Cheers,
Simon