@echo off
setlocal
:REQUEST
set /p REQUEST="Logoff, Shutdown, Reboot or Abort? L/S/R/A "
if /i %request%==l goto logoff
if /i %request%==s goto timer
if /i %request%==r goto timer
if /i %request%==a goto abort
goto REQUEST
:logoff
shutdown -f -l
goto exit
:abort
shutdown -a
goto exit
:timer
set /p TIMER="Wait how many seconds? "
if /i %request%==s shutdown -f -s -t %timer%
if /i %request%==r shutdown -f -r -t %timer%
:exit