PowerShell is the new powerful scripting language created by Microsoft. You can install it to Windows XP and above and it is included in Windows Server 2008.
Here is how to run a PowerShell Script through Deployment Server.
powershell -command "& { .\MyScript.ps1; exit $lastexitcode }" set ret=%errorlevel% del .\MyScript.ps1 exit %ret%
Very Good! Thanks