Gradle distribution distZip task zipped exe file is not working after extraction

Gradle version 6.3.3
Gradle distribution plugin.
The source folder has a working prunsrv.exe file.
After executing the Gradle distZip task it has created file.
Extracted the zip file. And tried to run the prunsrv.exe file and it is not working.

Error Message- This App can’t run on your PC

Please suggest what am I missing.

Actually, I used filter() method to replace the place holders in script file.
This gradle filter() method has corrupted the exe file after running the gradle build.

filter(ReplaceTokens, tokens: [VERSION :  prj.version])

I have corrected this piece of code by recopying the exe file.