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

the posted code doesn't read the serial monitor and i don't believe it shows any output that could possibly be to the FPGA