title: how to open the last opened files in ISE at the starting
body: <p>i wanted to automatically open the last opend files in ISE with posh script, 
  so i tryed to save filepaths of these files like the following.</p>
  
  <p><code>
  $action = {
  $psISE.CurrentPowerShellTab.Files | select -ExpandProperty FullPath | ? { Test-Path $_ } |<br>
  Set-Content -Encoding String -Path$PSHOME\psISElastOpenedFiles.txt<br>
  Set-Content -Encoding String -Value "Now exiting..." -Path c:\exitingtest.log<br>
  }<br>
  Register-EngineEvent -SourceIdentifier Exit -SupportEvent -Action $action<br>
  <br>
  </code></p>
  
  <p>when i close ISE, exitingtest.log is created and has "Now exiting...",
   but psISElastOpenedFiles.txt isn't created.
  it seems that ISE closes all opening files before the exiting event is executed.</p>
  
  <p>should i use Timer event?</p>