Hi Kay,
You can do this but it will require full trust and that is a bad practice since it complicates deployment. Check out the InfoPath SDK for the correct execution command as it varies depending on the language your form uses.
Patrick Halstead
Project Manager at Qdabra