I want to enter a command on the Arduino serial monitor using Terminal

I need you guys help.
Like Title. i want to enter a command on the arduino serial monitor by terminal.
Is it possible?

Yes, it’s possible.
This sketch is a good starting point:

but instead of sending the data back to the Terminal widget you’d send it to the serial monitor.

Pete.

Thank you for your commont