Indeed.
And note that they are functions - not “commands”.
Before sending data, you must switch to Data mode.
But the error mentioned is a compiler error; ie, nothing to do with the run-time operation.
There are examples included with the Developer Studio.
There is an example in the Code Sharing Area of the forum, here: Simple UART Echo Program