bats: 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/bats - from package: bats

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