Perl script of geometry optimization+dynamic simulation

Hello,

I have a question about my Perl script and be thankful if help me. In my script, my first structure (named GPE1), should be geometry optimized and resulted .xsd structure finaly be inserted in a dynamc run.My problem as shown below with question marks, is how i could connect this two steps. i do not know how the geometry optimized result can insert in dynamic run?

my \$docName = "GPE1";

my \$doc = \$Documents{"\$docName.xsd"};

my \$Results1 = \$module->GeometryOptimization->Run(\$doc, ([     OptimizationAlgorithm => "Conjugate gradient",

                                                                                                        MaxIterations=> 10000,       ,

        

                                                                                                          ]));

   my \$opt = ???????;

   \$Results = \$module->Dynamics->Run(\$opt, ([          InitialVelocities => "Current",

                                                                                     NumberOfSteps => \$numberSteps,

                                                                                     Temperature => \$temperature,

                                                                                     Thermostat => "Andersen",

                                                                                     TrajectoryFrequency => \$trajFrequency,

        

                                                                                                         ]));