Fixes an issue in which the "echo %errorlevel%" command returns an incorrect error code. This issue occurs when you run the PowerShell script at the command prompt on a computer that is running Windows 7 or Windows Server 2008 R2.
More...
I have a batch file that I use to:
Create a restore point, then swap out my modified system files. I store the "Sleep.exe" file in the same folder as the batch file.
The script goes something like:
echo Please wait while a Restore Point is made.
sleep 17
Take ownership,Rename Replace, Blah...