The simplest correct answer is:
Get-Process SourceTree | Stop-Process -Force
"SourceTree" is a process name.