I'm not understanding why the user has to open the template.
Are you just trying to upload an InfoPath Form.
I've run the following dos batch file from powershell:
prompt $D $T$_$P$G
@echo Please set the correct path and filename before running this script OR hit Ctrl+C to exit
@pause
set pathxsn="c:\xsn\MDAAnnouncements.xsn"
set urlpath="http://saovaio-pc"
cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\bin"
@echo Removing Form Template...
stsadm -o deactivateformtemplate -url %urlpath% -filename %pathxsn%
stsadm -o execadmsvcjobs
stsadm -o removeformtemplate -filename %pathxsn%
stsadm -o execadmsvcjobs
@pause
@echo Adding back Form Template...
stsadm -o verifyformtemplate -filename %pathxsn%
stsadm -o execadmsvcjobs
stsadm -o uploadformtemplate -filename %pathxsn%
stsadm -o execadmsvcjobs
@echo Pause here for 2 min...
@pause
stsadm -o activateformtemplate -url %urlpath% -filename %pathxsn%
stsadm -o execadmsvcjobs
@pause
Let me know what the difficulties are