powershell throw error in try catch