Download the following script to whichever directory you like
Allow execute permissions
Create a scheduled task via "Task Scheduler" section in control panel
Run Command should look similar to the following
For some reason the output doesn't appear in the task scheduler window when the full output is displayed
However, the results are appearing properly in the email notification and when I reduce the amount of output by modifying the script a bit it displays properly as well
python speedtest.py --no-download --simple
You can automatically log the output of any script to a file as well in Task Scheduler.
This can be done by going to the Task Scheduler app, Settings, enabling output recording, and specifying a directory to store output.