runas /smartcard
I am attempting to log into a remote desktop on command prompt with a Smartcard and its corresponding pin number.

I was attempting to program a GUI around this feature such that the program reads in two textfields and then logs in.

I do not yet have a smartcard, but I have been testing (when I can) with one of my coworker's card.

Is there any way to have the program wait for "Enter the PIN" and then enter the pin from the earlier saved field without the user having to lift a single finger?
runas /smartcard
===

I am attempting to log into a remote desktop on command prompt with a Smartcard and its corresponding pin number.

I was attempting to program a GUI around this feature such that the program reads in two textfields and then logs in.

I do not yet have a smartcard, but I have been testing (when I can) with one of my coworker's card.

Is there any way to have the program wait for "Enter the PIN" and then enter the pin from the earlier saved field without the user having to lift a single finger?