Sorting out 4digit code

Hello everyone! Asking for your help for writing a script. I lost access to the number bounded to one my account, without it I cannot restore it cause I have to paste sms code.

So my task is:

  1. Form a dictionary of values (from 0000 to 9999) 10000 numbers
  2. Paste first of them (0000) into the field in application and click the button
  3. Delete the value from field
  4. Remake step 1 but with the next number etc
    So the script has to sort out 10000 combinations

I really need your help and assistancecvB0Ba9CX-I