How to send commands without typing it on the serial monitor?

how can you communicate with the Arduino via the PC using the "Serial" interface if the "Serial" interface is connected to the FPGA ?

posting your code (using "</>") would help