I would like to run a command in DOS, which uses the output of another command as its part, something that single back-quote (``) allows to do on UNIX or Linux.
For example, if myCommand returns a list of files, I would like to execute in DOS some analog of the UNIX command
grep `myCommand`
How would one do that in DOS? Thank you in advance for your help.