Script finished and operational running twice a day via windows task scheduler.

Thanks guys for all your input and help.