‘gcloud’ auth print-access-token Command is not recognizable from Process::fromShellCommandline(‘gcloud auth print-access-token’)

I configured Google Cloud for OCR and authenticated user by ADC, and implemented complete logic in laravel 8 & php 7.4.19. To access the access_token I was running command ‘gcloud auth print-access-token’ and it was returning token, but suddenly it started given error ‘gcloud is not recognized as internal or external command’

I am running command using SymfonyComponentProcessProcess::fromShellCommandline(‘gcloud auth print-access-token’), It was sending a token which I used to send REST API request at https://vision.googleapis.com/v1/images:annotate to fetch image text. Everything was working fine on localhost but now, It is giving me error
The command “gcloud auth print-access-token” failed.nnExit Code: 1(General error)nnWorking directory: nnOutput:n================nnnError Output:n================n’gcloud’ is not recognized as an internal or external command,rnoperable program or batch file.”

Even environment variables are set, still this is coming, which was not coming before