Sprawdź, czy polecenie istnieje

command -v <the_command>
Tequilian