Workaround: click in viewport before typing command.
(note, I used word workaround - not a permanent solution).