TargetTool: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/TargetTool - from package: edk2-tools-python

You may install the required package with command yum install {package}
Error in other languages:
TargetTool: bevel nie gevind nie
TargetTool: comandă negăsită
TargetTool: comando não encontrado
TargetTool: commande introuvable
TargetTool: command not found
TargetTool: käsku ei ole
TargetTool: không tìm thấy lệnh
TargetTool: komanda nerasta
TargetTool: Kommando nicht gefunden.
TargetTool: kommandot finns inte
TargetTool: komut yok
TargetTool: nie znaleziono polecenia
TargetTool: níor aimsíodh an t-ordú
TargetTool: no se encontró la orden
TargetTool: no s'ha trobat l'ordre
TargetTool: opdracht niet gevonden
TargetTool: parancs nem található
TargetTool: perintah tidak ditemukan
TargetTool: príkaz nenájdený
TargetTool: příkaz nenalezen
TargetTool: команда не найдена
TargetTool: командата не е открита
TargetTool: 命令找不到
TargetTool: コマンドが見つかりません