gpg-agent bypass PIN ENTRY

Is there a way to pass the user PIN of a smartcard in a gpg-agent batch file or script?

I am using a nitrokey as a private key store for an unattended SFTP system.
It simply runs a WinSCP script to pickup and send files via SFTP.

Before the script runs I launch I run a batch file to invoke the gpg-agent:
gpg-connect-agent.exe" /bye

WinSCP is then able to use the private key on the smartcard. However, the first time I connect the pinentry program appears and requires me to enter the user PIN.

Is there a way to pass this PIN and unlock the nitrokey when gpg-agent launches?

maybe there is, as this is a general crypto backend question,
you could try asking it on