Fix return type of createMandatoryParameter

Add ICommandParameter as return type of createMandatoryParameter method.