|Line 8: "echo GAMER 0$"|
The dollar sign is a special character, and has to be escaped with '^'.
echo GAMER 0^$
What is variable '%logname%' containing? This is not your whole script?
If your not sure that variables are present, use a dot after an echo.
Happy is ONE who says I am an OttoMAN.