Hello @FrankE ,
my way of working is creating a new project and afterwards copying the script(s) to files in the new project.
I assume that you did something similar. Did you also run the script in the new project? Do you see this in the History? Is it possible that you copied the script to the wrong folder?
I never work with OneDrive, so I can't help you with that.
Maybe another forum member has an idea about what could be wrong?