Loading Sketches With Custom Windows App

Does anyone know if there is any code available to load sketches or hex files from a separate Windows App that will compile in Visual Studio C++ .Net 2008?

I have a complex Windows Forms app that communicates with three Arduino Nanos assembled onto custom circuit boards, and I'd like to integrate sketch loading into my own Windows app.

I appreciate any leads.

The usual advice is to enable verbose mode in the IDE and capture how it does the uploading, then replicate that with your application.