Hi Dave, welcome.

Here's an example using the command shell (%comspec%) and the dir command...

shell '%comspec% /c dir >dir.out 2>nul'

The /c tells the command interpreter to wait for completion...

Shawn.