Scripting profile artifact download

is there a way to kick this off via script? im using the latest docker image.

really?

curl -X POST "http://localhost:12101/api/download-profile" -H  "accept: text/plain"