How to call an added command from ribbon icon click

how to call an added command using addCommand from ribbon
OR
how can I do an editorCallback like functionality from addRibbonIcon

Is this possible or am I doing something completely wrong ?

this.addCommand({
			id: 'sample-editor-command',
			name: 'Sample editor command',
			editorCallback: (editor: Editor, view: MarkdownView) => {
				console.log(editor.getSelection());
				editor.replaceSelection('Sample Editor Command');
			}
		});
this.addRibbonIcon("dice", "Print to console", (evt: MouseEvent) => {			
			// how do I call "sample-editor-command" here ?
		});

8 days not a single reply. :frowning:
seems like this is not doable , there might be some unexplored way thats needs some digging.