Instantiate command service to enable interaction with the component.
Component id for which command service is to be instantiated.
Optional
a record which contains tokenFoctory and username
CommandService as Promise
Instantiate command service to enable interaction with the component.