Define and Edit a Map in Command Script

Please consider using the scriptwizard add-in and its "Prepare Upload" functionality before uploading your script, find it here: Command: ScriptWizard (multipurpose scripting resources aid)
Your script will support updating, a multipurpose about dialog (ScriptAbout (About Dialog helper for script add-ins)) and the whole process of uploading is streamlined.
It's easy to do: Install the add-in and the provided button, select your script and choose "Prepare Upload".

Ok, I kind of like the swiss knifes approach for scripts and add-ins, but I understand your position, no problem - I'll be back for the next script of yours! o))
Have a nice weekend. o)