Kill process based upon process Id powershell – xaml listview
I have a xaml listview with a button. The listview shows all processes that have powershell* or pwsh* in them. I want to be able to kill any of the processes by clicking a button but so far nothing I’ve tried has worked. Here is my code so far: