[UEFI]Reboot & DC stress under EFI Shell

Create a nsh file to save the below code ,then set the uefi shell as the first boot option in the BIOS, and boot to efi shell, ,put it(startup.nsh ) in the EFI partition.

echo -off

fs0:

date >> Time.log
time >> Time.log

:counter
if not exist counter.log then
set Counter 0
echo %Counter% > counter.log
endif

for %a run (%Counter% 19999)
#echo %a
if %Counter% == %a then
set myFlag 1
else
if %myFlag% == 1 then
set myFlag 0
set Counter %a
goto Leave_For
endif
endif
endfor

:Leave_For
echo %Counter% > counter.log
echo Loop Cycle = %Counter%
stall 2000000

:device check

if not exist normal.log then
PCI > normal.log
endif

PCI > temp.log
comp temp.log normal.log
if %lasterror% == 0 then
echo ****** %Counter% cycles Detected OK ***** >> Time.log
else
echo ****** %Counter% cycles Detected fail ***** >> fail.log
date >> fail.log
time >> fail.log
comp temp.log normal.log >> fail.log
type temp.log >> fail.log
endif

del temp.log

:Reboot_stress                                                                                                 reset