Can I run a scheduled report on a scheduled scan?

I want to be able to run an external scan on an asset group every 4 days, then automatically have a report generated and sent out based on those scan results (and only those scan results). But I cannot find a way to do this:

If I try to do it in the scheduled scan, I can only send out a notification that scan results are completed. I cannot find a way to specify that a report be sent out.

If I try to create a "scan-based results" scheduled report, I must specify a single scan result to report on. But I want it to use the latest results from a recurring scan - not a single, hardcoded scan result. And I can't use a trending "last 1 days" host-based results report either, because that will pick up the contents from other scans (including internal scans that show different details than an external scan)

From what I have found in the GUI you can schedule a Scan and you can schedule a "Scan Based" Report (where you still have to manually select a different scan each time). Yet I cannot find a way to tell the Scheduled scan to generate a report once it is finished. So I use the API and run the script below in Task Scheduler (scheduled for when I know the scan will be done).

I've raised a feature request for the same. In short, I requested an option to link your scheduled report to a scheduled scan or multiple schedules scans, so it will run once the scan is finished. Let's await if Qualys is willing to add the feature.