title: Powershell close multiple windows / end processes based on name
body: <p>I have a pretty neat mess of batch/python scripts that install a program called MATRIS, followed by about 15 exe updates. 
  Around 11 of these updates open a window telling me the that the update was successful. </p>
  
  <hr>
  
  <p>Now it would be really fun to run a batch or powershell script which closes all of these windows for me. 
  The last thing I tried was <code>Get-Process | Where-Object {$_.Path -like "MatrisInstaller.APCIPLUS"} | Stop-Process -WhatIf</code>
  I wasn't sure if it was the name as read in task manager, or like the title of the window, but I tried both. 
  <a href="https://i.stack.imgur.com/NCqmY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NCqmY.png" alt="Capture of the window and task manager"></a></p>
  
  <p>Please note that a couple of these are (32 bit) - I'm not sure if that would impact the script. </p>
  
  <p>I was able to run <code>tasklist</code> followed by <code>kill {PID}</code> but PIDs change: I'm not sure how to script it.</p>
  
  <p>Please reply if you need any clarification, I've historically been poor at wording my questions. </p>