If I’m reading your question properly..l
You simply need to use the Serial monitor or something like it - to exchange characters with the Arduino over a USB COM port.
You can try applications like PuTTY or similar, and there are many examples of what’s needed at the Arduino end.