If I'm understanding correctly, you can use Get-Process:
For specific apps you can do something like:
$procid=get-process appname |select -expand id
This is more of a powershell question than an Azure question, though.
If you want to check for an Azure DevOps work items you can use: