This looks like a terminal/paste encoding issue rather than an RT-Thread problem.
Try:
Set XShell to UTF-8 encoding
Disable “smart/fast paste” options
Test with another terminal (PuTTY / Tera Term)
Paste into a plain text editor first to remove hidden characters
Since help works but pasted commands break, it’s very likely extra hidden characters are being added during paste.
Ask Can not upgrade WHD firmware on sdk-bsp-psoc_e84-edgi-talk board