Only a closing bracket ] within the actual prompt needs to be escaped.
Using the following syntax everything appears to work for me:
SITE CMD %d[Command [optional\] text] blah
In addtion I plan on adding a new method so that escaping isn't needed, instead the entire text would be quoted as shown below
SITE CMD %d["Command [optional] text"] blah
|