If you want to run this and capture the results to a log file, you should make sure to also capture stderr
. You can use something like:
./bulk_folder_runner.bat > log.txt 2>&1
If running via Task Scheduler, please note that Task Scheduler does not properly record exit error codes.