To send and receive SMS, CBS, and MMS messages from the command line, use installdir/bin/wma-tool.exe.
The device manager must be running before you launch wma-tool.
When the tool is started, it outputs the phone number it is using.
Each protocol has send and receive commands. The requested command is passed to the tool as a first argument. Possibilities are:
smsreceive - receives SMS messages
cbsreceive - receives CBS messages
mmsreceive - receives MMS messages
smssend - sends SMS message
cbssend - sends CBS message
mmssend - sends MMS message
The sending commands send the specified message and exit. The receiving commands print incoming messages until they are explicitly stopped.
Each command has its own arguments.