title: Timing file open time with Powershell
body: <p>I'm trying to test how long it takes to load a large file (cad or PSD files) and currently our testers are using a stopwatch. I would like to remove the possibility for human error and create a script to test for us. </p>
  
  <p>Currently, I can open a file and time how long it takes to execute the command with powershell  by using the following command:</p>
  
  <pre><code>Measure-Command {Invoke-Item C:\path\test.psd}
  </code></pre>
  
  <p>Is it possible to measure the actual time it takes to load the application and open the file using powershell? I've done quite a bit of searching and cannot find anything for this specific scenario. </p>