Powershell Script Running Slow