@Josieb1: two things.
1) You put the python code into a file. The file can be anywhere. It must end with ".py". Lets assume you put it in documents, at the same level as your library in the file add_txt.py.
2) Given the above assumption, the command line you use would be
Code:
calibre-debug C:\Users\Jenny\Documents\add_txt.py