This is a standard shell scripting task.
calibre's ebook-convert command does not have an option to dump the file to stdout instead of a file, since stdout is needed for the progress messages -- but you don't have to use a pipe

you can just use a tmp file and delete it when you are done.
Such is life -- many commands are like that.