Since gitlab-org/gitlab-runner!1260 we used delayed expansion for errorlevel when running Windows Batch.