No. This script works only with the classic import wizard. Also, ensure that you leave a copy of your files in the phone (as said in one of my earlier replies.)
Sir, I am still facing the same issue. I have reset the legacy photos app and reset new Photos app then tried to import pictures again, same problem with the try again box. I have used your script to clean acq*tmp* files in command line and in notepad. The same types of occur appears. I have tried your various methods in windows 11 pro x64 and in windows 10 enterprise x64.
i am beginning to think that it is your and Microsoft's responsibility to keep systems and software upto date that is packaged with the operating system if such modern devices cannot work and are unstable there is a bigger problem in your management and/or software developmwnt program that needs deep reconsideration. I am highly unsatisfied with this level of clumsiness and follow up. Ive waited months for your reply and right now you have deserted my concerns. Ive been very patient with you but you have not done your job.