title: Issue with getting batch script to print keeps given a error about set was unexpected at this time
body: <p>Okay I am trying to get the script to print the day of the week and after the test would like to get the script to go more advanced once i get it working correctly</p>
  
  <pre><code>@echo off
  SETLOCAL enabledelayedexpansion
  SET /a count=0
  FOR /F "skip=1" %%D IN ('wmic path win32_localtime get dayofweek') DO (
      if "!count!" GTR "0" GOTO next
      set dow=%%D
      IF %dow%==1 set dowday=Monday
      IF %dow%==2 set dowday=Tuesday
      IF %dow%==3 set dowday=Wednesday
      IF %dow%==4 set dowday=Thursday
      IF %dow%==5 set dowday=Friday
      IF %dow%==6 set dowday=Saturday
      IF %dow%==7 set dowday=Sunday
      SET /a count+=1
  )
  :next
  echo %dowday%
  pause
  </code></pre>