I use cURL (Google it) in my first batch file (proboat3.bat) to to run a .asp recordset which then generates the second batch file (proboat4.bat) that then creates my PDFs, the first batch file is proboat3.bat and it creates proboat4.bat,
proboat3.bat looks like this;
proboat4.bat looks like this;
I use Task Scheduler to activate these batch files a 3am, proboat3.bat at 3:09 and proboat4.bat at 3:10.
I hope that this helps if you get too stuck get back to me.
Regards
James