One of our exchange 2010 power-shell script was having issues during execution
Below was the error:
WARNING: An unexpected error has occurred and a Watson dump is being generated
This was because in exchange 2010 shell has to connect to exchange servers remotely.
We have added below to our script & it worked fine after that.
Hoping this will help others as well that are facing the similar issues.