I have created the below script that what it does is to kill a specific Veeam process related to a job name. The issue is that it have to first find the the job id, then search in processes description for that ID and kill it. But i think somehow is making a infinite loop that in some cases when i have to run it multiple times (because there could be more than one process related to the ID), it reboots the server.
$JobName = Read-Host "Enter Job name"
$JobID = Get-VBRJob | select name, ID | Where {$_.name -like $JobName} | select -expand ID
wmic Path win32_process Where "CommandLine Like '%$JobID%'" Call Terminate