bgw2pw.x: 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/bgw2pw.x - from package: quantum-espresso

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