title: Powershell - CloseMainWindow work for all?
body: <p>I'm looking for a way to gracefully close/quit the GoogleDrive app which runs under the process GoogleDriveFS.</p>
  <pre><code>get-process GoogleDriveFS
  
  Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
  -------  ------    -----      -----     ------     --  -- -----------
      219      16    10796       5732       0.05   4392   1 GoogleDriveFS
      333      22    11820      32364       0.17   8424   1 GoogleDriveFS
      297      19    16528      34860       0.06  12036   1 GoogleDriveFS
      245      17    10472      23992       0.03  14296   1 GoogleDriveFS
      572      26    52256      82728       0.84  17788   1 GoogleDriveFS
      518      21    28668      68208       0.44  18460   1 GoogleDriveFS
     1024      59    47016      89396      27.95  19452   1 GoogleDriveFS
  </code></pre>
  <p>is something like Process.CloseMainWindow Method suitable for this ? or is there a better way to ensure the app isn't running?</p>