title: How do I execute a command file to upgrade existing IIS 7 web applications during a web deploy?
body: <p>I want to deploy a couple of web apps but, when deploying to a server which has the existing web apps,  I need to upgrade the application pools for those two web apps (to use ASP.NET 4.0).</p>
  
  <p>I have an automated deployment configured via VS 2012 which works fine.  How can I modify that automated deployment (which uses web deploy to a Windows Server 2008 R2 server) so that it runs the two shell commands to change the application pools?</p>