Here is quick-and-dirty way to get the shortname (the real shortname):

$FOLDER = "%USERPROFILE%\My Documents"

$shortname = CreateObject("Scripting.FileSystemObject").GetFolder($FOLDER).ShortName

?"name=" $shortname