wrapping command in a cmd process