Weird Behavior: Can't get files from OneDrive in PowerShell
I'm attempting to clean up a OneDrive folder that a user accidentally created a whole bunch of duplicated files.
One odd thing I'm running into is when I get the filename of two files I want to compare to see if I can remove them (using commands like Get-Item, Get-FileHash, Copy-Item, and Remove-Item) is when I get the full path of the object it acts as if that path doesn't exist - even though I got the path from the output of "Get-ChildItem $SourceDir -File -Recurse"
When I looked in the directory in question I also see that they're all listed as links (mode is -a---l) which I suspect is an issue. I've forced OneDrive to download the files to disk, but still no change in behavior.
If anyone else has suggestions or guidance, I appreciate it!