Solidworks pdm api run template with parameter

I would like to run a template in the solidworks PDM via API.

I can to do it by

IEdmTemplate5 template = null; 
template.run(this.Handle.ToInt32(), vault1.RootFolderID);

but my template require input parameter usually filled by the user in a inputbox.

How can I run the template with parameters by code without user action?

SolidworksApi macros