there is plenty of info on this stuff in the manual. apparently, for this to work with windows you need to give the iusr_machinename account read/write permissions for both the cmd.exe, and the programm you want to run.
might be a bad idea.
if your using vb your probably best to wrap all your functionality into a com class, then call that using the com function in php.