bgw2pw.x_mpich: 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/lib64/mpich/bin/bgw2pw.x_mpich - from package: quantum-espresso-mpich

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