(iii) Double-click the batch file of the above (2) or execute it from the command prompt, or directly execute the PowerShell script of (1), I can obtain the same output as 7/19.
If I'm reading the above correctly, you can execute from command prompt the batch file, in powershell to export to csv and in windows file explorer by double clicking the .ps1 script.
If the script and batch file work independently when triggered manually, it may be that you need to re-create the Scheduled Task in task scheduler, and run it manually to test the output.
Also, can you post the script contents of your .ps1 file.