Bookends import -- what am I doing wrong?

Thank you. Custom scripting is not allowed for this import function, right?

Custom scripting isn’t allowed for any built-in functions, e.g., you can’t choose File > Import > References from Bookends and modify that command with a script. You could only create a script of your own that includes an imoport function.