Clarify the behavior of Exec command
Clarify the behavior of Exec command

Powershell has two methods of detecting error that have very different
semantics:

- $?: bool which represents status of last powershell operation
- $lastexitcode: integer holding exit value of last windows command

When Powershell directly executes a windows command these two variables
are roughly interchangable.  For example:

``` cmd
> & msbuild BadProj
> "$?:$lastexitcode"
false:1
```

When Powershell indirectly executes a windows command, say through
Invoke-Expression, then the important differences show up.  The $?
variable will represent Invoke-Expression while $lastexitcode will
represent the windows command.

``` cmd
> Invoke-Expression "& msbuild BadProj"
> "$?:$lastexitcode"
true:1
```

Updated the error checking around Exec to guard against this potentiall
difference.

bartdesmet/roslyn,panopticoncentral/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,agocke/roslyn,DustinCampbell/roslyn,VSadov/roslyn,diryboy/roslyn,KevinRansom/roslyn,yeaicc/roslyn,jeffanders/roslyn,kelltrick/roslyn,jkotas/roslyn,bkoelman/roslyn,xasx/roslyn,gafter/roslyn,KirillOsenkov/roslyn,cston/roslyn,gafter/roslyn,Hosch250/roslyn,ErikSchierboom/roslyn,khyperia/roslyn,mattscheffer/roslyn,srivatsn/roslyn,amcasey/roslyn,tmat/roslyn,brettfo/roslyn,TyOverby/roslyn,tannergooding/roslyn,weltkante/roslyn,reaction1989/roslyn,swaroop-sridhar/roslyn,tmeschter/roslyn,brettfo/roslyn,jamesqo/roslyn,mgoertz-msft/roslyn,nguerrera/roslyn,DustinCampbell/roslyn,zooba/roslyn,kelltrick/roslyn,swaroop-sridhar/roslyn,VSadov/roslyn,bkoelman/roslyn,diryboy/roslyn,agocke/roslyn,AnthonyDGreen/roslyn,MichalStrehovsky/roslyn,sharwell/roslyn,ErikSchierboom/roslyn,KirillOsenkov/roslyn,mavasani/roslyn,aelij/roslyn,paulvanbrenk/roslyn,dotnet/roslyn,gafter/roslyn,pdelvo/roslyn,cston/roslyn,Giftednewt/roslyn,tmeschter/roslyn,dpoeschl/roslyn,khyperia/roslyn,weltkante/roslyn,zooba/roslyn,robinsedlaczek/roslyn,heejaechang/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,TyOverby/roslyn,stephentoub/roslyn,panopticoncentral/roslyn,CaptainHayashi/roslyn,pdelvo/roslyn,kelltrick/roslyn,mmitche/roslyn,Giftednewt/roslyn,weltkante/roslyn,tvand7093/roslyn,orthoxerox/roslyn,tvand7093/roslyn,wvdd007/roslyn,AnthonyDGreen/roslyn,physhi/roslyn,amcasey/roslyn,akrisiun/roslyn,mattwar/roslyn,tvand7093/roslyn,nguerrera/roslyn,tmat/roslyn,DustinCampbell/roslyn,jeffanders/roslyn,drognanar/roslyn,amcasey/roslyn,jkotas/roslyn,robinsedlaczek/roslyn,shyamnamboodiripad/roslyn,MichalStrehovsky/roslyn,yeaicc/roslyn,AmadeusW/roslyn,mgoertz-msft/roslyn,reaction1989/roslyn,genlu/roslyn,mmitche/roslyn,aelij/roslyn,mattwar/roslyn,xasx/roslyn,aelij/roslyn,sharwell/roslyn,dotnet/roslyn,ErikSchierboom/roslyn,paulvanbrenk/roslyn,CyrusNajmabadi/roslyn,CaptainHayashi/roslyn,genlu/roslyn,CaptainHayashi/roslyn,lorcanmooney/roslyn,abock/roslyn,eriawan/roslyn,AmadeusW/roslyn,davkean/roslyn,srivatsn/roslyn,AnthonyDGreen/roslyn,reaction1989/roslyn,akrisiun/roslyn,jmarolf/roslyn,tmeschter/roslyn,VSadov/roslyn,MattWindsor91/roslyn,mattwar/roslyn,OmarTawfik/roslyn,stephentoub/roslyn,abock/roslyn,sharwell/roslyn,CyrusNajmabadi/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,zooba/roslyn,Hosch250/roslyn,jcouv/roslyn,jamesqo/roslyn,jasonmalinowski/roslyn,swaroop-sridhar/roslyn,KevinRansom/roslyn,mgoertz-msft/roslyn,yeaicc/roslyn,robinsedlaczek/roslyn,Hosch250/roslyn,CyrusNajmabadi/roslyn,abock/roslyn,wvdd007/roslyn,jcouv/roslyn,bartdesmet/roslyn,dpoeschl/roslyn,AlekseyTs/roslyn,paulvanbrenk/roslyn,orthoxerox/roslyn,KevinRansom/roslyn,genlu/roslyn,drognanar/roslyn,mattscheffer/roslyn,pdelvo/roslyn,wvdd007/roslyn,davkean/roslyn,physhi/roslyn,MattWindsor91/roslyn,OmarTawfik/roslyn,mmitche/roslyn,jeffanders/roslyn,OmarTawfik/roslyn,physhi/roslyn,bkoelman/roslyn,lorcanmooney/roslyn,panopticoncentral/roslyn,bartdesmet/roslyn,tannergooding/roslyn,tmat/roslyn,agocke/roslyn,heejaechang/roslyn,eriawan/roslyn,jcouv/roslyn,jmarolf/roslyn,MichalStrehovsky/roslyn,cston/roslyn,srivatsn/roslyn,jkotas/roslyn,mavasani/roslyn,akrisiun/roslyn,tannergooding/roslyn,AlekseyTs/roslyn,jasonmalinowski/roslyn,stephentoub/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,MattWindsor91/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,diryboy/roslyn,mattscheffer/roslyn,heejaechang/roslyn,xasx/roslyn,MattWindsor91/roslyn,orthoxerox/roslyn,nguerrera/roslyn,drognanar/roslyn,Giftednewt/roslyn,TyOverby/roslyn,dpoeschl/roslyn,jamesqo/roslyn,eriawan/roslyn,jmarolf/roslyn,KirillOsenkov/roslyn,AmadeusW/roslyn,davkean/roslyn,brettfo/roslyn,lorcanmooney/roslyn,AlekseyTs/roslyn,khyperia/roslyn,jasonmalinowski/roslyn