I should have been putting it into a codebox, so that you can copy/paste it with less chance that some software between us is mangling those quotation marks.
This, hopefully:
/script SetCVar("nameplateMaxDistance", 41)
This is the exact command that worked for me:
/script SetCVar(“nameplateMaxDistance”, 41)