Unterminated %REM block

You used a %Rem keyword with no corresponding %End Rem. Beginning with the unpaired %Rem, all lines of the script were read as comments.

Insert the corresponding %End Rem.