The following is an example on how to call a command from an external
extension, namely the markdown.showPreview
command.
With a workspace opened, and a README.md
present at the root,
the command Markdown: Preview Readme
will open the README.md
as a preview.