Powershell Script Hangs In Task Scheduler