As I'm debugging, I noticed $exception within the locals window as a result of an exception thrown implying this variable is available in the scope.
The question is how can I access this $exception variable.
How can line 78 be?
| x -> Debug.WriteLine("exception" + $exception.Response.StatusCode)