MDT supports running Windows PowerShell scripts as a part of the deployment process, including Windows PowerShell version 3.0, which is included in Windows 8, Windows Server 2012, and Windows PE 4.0. You can develop Windows PowerShell scripts to help automate the deployment process, and then run those scripts within an MDT task sequence.
Run the Windows PowerShell scripts using a task sequence step created using the Run PowerShell Script task sequence step type. You can add a task sequence step based on the Run PowerShell Script task sequence step type for task sequences in LTI, ZTI, or UDI.
For more information about this new feature, see the section, Running Windows PowerShell Scripts During Deployment, in the MDT document Using the Microsoft Deployment Toolkit.