cmd: TASKLIST wmic process where processid=972 get processid,executablepath,name taskkill /F /pid 3864 TASKLIST shell: BUILD_ID=DONTKILLME nohup "D:/share_dir/xxxx.exe" > 1 2>&1 & cmd: set BUILD_ID=DONTKILLME taskkill /F /pid 3316 powershell.exe -command Start-Process -WindowStyle hidden -FilePath D:\share_dir\xxxx.exe TASKLIST