It should be possible to pipe text from an arbitrary command into `psedit` to open a new untitled file buffer. For example: `Get-Process | psedit`