title: Windows Powershell needs to print out information for a particular command regardless of whether it successfully executed or Not
body: <p>I'm king of novice when it comes to Powershell.
  I wanted to create Powershell scripts that are more verbose as it executes various commands.</p>
  <p>For example in the following code, I want it to clearly display what it doing, and regardless of whether the command was executed successfully Or Not, I want it to print out the results of the execution of the command in question:</p>
  <blockquote>
  <p>Import-Module IISAdministration</p>
  <p>Stop-WebSite 'ArtemisDEV'</p>
  <p>$a = &quot;.\blabBlah.csproj /t:Clean&quot; Invoke-Expression &quot;$msbuild $a&quot;</p>
  <p>$b = &quot;.\blabBlah.csproj /t:Build /p:Configuration=Dev&quot;
  Invoke-Expression &quot;$msbuild $b&quot;</p>
  </blockquote>
  <p>Could someone please modify the aforementioned code, and show it such a way that it will print out more verbose output statements?</p>