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

Easy to do from a smart phone using Bluetooth.