You should use CVI's ActiveX server. Go to the cvi\samples\activex\cvi\cvidemo.prj to see an example of how to use this. From here you can Launch CVI, Load Project, Compile and Run them, etc. There is also a function to SetCommandLine that will let you programmatically change the command line settings for the project.
Best Regards,
Chris Matthews
Measurement Studio Support Manager