And there are no errors written to the Indigo Events log? I'm at a loss. I run the script on my system and it works.
I wonder if there's something going on with the OneDrive folder permissions. Perhaps try another folder like the current User's downloads folder.