I would like to run the following command and pipe stout of both to textedit:

pmset -g; echo; pmset -g assertions | open -f -a TextEdit

This doesn't work, it only executes the latter.

Also, anyway to execute multiple arguments for the same command like:

pmset -g { echo, assertions} 

I'm sure this will get voted down for being a basic question. Thanks in advance to any who reply.