The objective is to replicate setting kerning between 2 individual characters, which is done in the UI by inserting the caret between 2 characters in a text frame and then using the now-accessible kerning input in the characters panel.
Using scripting, though, an empty selection is not well-liked and at least one character has to be "highlighted" so that script-applied kerning can be applied to the space before that character.
But how is it possible to make a selection through javascript? This is more of a curious experimentation at this point.