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

Your post was MOVED to its current location as it is more suitable.