set cod4=qbittorrent.exe
FOR /F %%x IN ('TASKLIST /NH /FI "IMAGENAME eq %cod4%"') DO IF %%x == %cod% goto Found
@echo off
set cod4=qbittorrent.exe
FOR /F %%x IN ('TASKLIST /FI "IMAGENAME eq %cod4%"') DO IF %%x == %cod4% goto Found
:Found
echo Found
TASKLIST /NH /FI "IMAGENAME eq %cod4%"
$cod4 = "qbittorrent.exe"
Get-Process | where{$_.ProcessName -like $cod4} | select ProcessName