As I was suggested
I opted for Attended Automation.
But there is another workaround which I can think of -
Encrypt the PIN, store it in your mailbox, fetch it from the email using Read Mail activity and decrypt it in the process using PowerShell/Python script or a Microbot. Ensure to apply data protection on the decrypted pin.
Let me know if this helps.