Decrypting a file throws a timeout error

I’m adding code to decrypt a file to a Coldfusion app this way:

    name="C:\Program Files (x86)\GnuPG\bin\gpg.exe"
    arguments='--pinentry-mode=loopback --passphrase #passphrase# -d -o #txtFilePath# #pgpFilePath# '

is working in my machine with gpg version 2.4.5

But when I run it on the server it hangs for a while and shows this error
Timeout period expired without completion of gpg
The gpg version in the server is 2.4.4

What could be the issue?

It might ask you a question like “do you want to overwrite the file” or something like that.
Add “–batch” to the arguments and maybe also “–yes”.

Thanks for the answer! Yes that was the issue! it works now!