Thanks for pointing this out! However if you look near the top you'll see the part where the argument is processed, and as you can see it looks for --closeport but still uses goto closeports. So the script still runs as intended, just I made it a bit messy, oops.
Still, thanks for pointing this out, I'll try clean up the script in the next update.
EDIT: Has now been updated! Code makes mores sense and you can now set PermGen size in settings.bat.