Here is a PowerShell version of a VBScript trick I've been using to pause sequences without relying on the Task Sequence Debugger or the ServiceUI.exe component from MDT. The script searches for a GO.txt file in the root of the system drive (X: if you are in WinPE, or C: if you are in Windows) and waits until it is created.
Add this script as an embedded script to your TS, and name it something clever 🙂
# Script to pause a TS until a GO.txt file is created in the root of the system drive (X: if WinPE, or C: if in Windows)
$File = "$($Env:SystemDrive)\GO.txt"
do {
#Write-Host "Just waiting"
Start-Sleep -Seconds 2
}
while (-not(Test-Path $File))
Start-Sleep -Seconds 10
# Delete the file
Remove-Item -Path $File -Force

