You have to add something like this to the loop() to transfer the command string from the serial console to the device om mySerial:
if (Serial.available() > 0) {
mySerial.write(Serial.read());
}
The carriage return and line feed are delivered automatically when the appropriate setting is chosen in the serial console.