Go to Build Events > Pre Build Events and enter the command line you want. Be sure to give the full path of the cmd file, and enclose it in quotes if the path has spaces. You can use dos piping like this:
c:\project\mycmd.cmd > new.h
There are some macros that might be useful. Click on the Macros button to see list.