Build eneginering MSBuild have many benefits. One of them is great extesibilty with custom tasks. In other case Windows PowerShell is very powerfull tool to do automated work. I was develop library that brings power of the Windows PowerShell to the MSBuild. Please review this at the Home page of the PowerShell Tasks for MsBuild.