Rhino script to select all object and export as .iges file

Hi thanks, I think I had that, I didn’t realize Rhino was waiting for me to click enter to continue, and then it asks for mesh density even though all the selected objects are poly mesh, so all I need to do is add to Enter to my script? How do I do that?
(create meshs by selecting objects on a layer and using extractrendermesh)

selectedMeshs = Rhino.SelectObjects( array_newMesh )
strFile = Chr(34) & baseFileName & arrLayers(i) & “.obj” & Chr(34)
Rhino.Command "_-Export " & strFile, 0