sendCommand or postUpdate does not work in OH 2.1 - why?

Don’t think you can do that without an item.
Items are objects with methods ‘attached’ to them. This seems similar to the discussion here:

try to define an item and use this item with sendCommand.