title: Customize T4 Scaffolding With PowerShell
body: <p>I want to create a <strong>Custom Scaffolder</strong> that uses arbitrary <strong>PowerShell</strong> logic. It can render <strong>T4 templates</strong> (multiple ones if I want), with the result being output:</p>
  
  <ul>
  <li>As a new file in your project</li>
  <li>as a new code block inserted into an existing class</li>
  <li>my PowerShell logic can use <strong>Visual Studio</strong>’s “code model” API to manipulate files and code elements in other arbitrary ways.</li>
  </ul>
  
  <p>How to Customize T4 Scaffolding With PowerShell?</p>