PowerShell - Script never completes. Is there a session timeout?