yeah, the com script also makes use if the dir command, but there's a little difference though.

as you might have been noticed, the com object waits for the dir command to return, while /run doesn't. anyway, both ways work. choose your preferred