pw2bgw.x_openmpi: 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

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/openmpi/bin/pw2bgw.x_openmpi - from package: quantum-espresso-openmpi

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