The command-line utility DumpIKM.exe writes the Intent model contained in an Inventor IAM file to the standard output. You can use it to save dynamic changes to a model, independently of the IAM:
DumpIKM.exe filename.iam [/ui]
DumpIKM sets ERRORLEVEL 0 on success, and 1 on failure (with an error message on the command line)