I was using Copy-File as a reference, and I’m completely confused by $fileCopyError.
For starters $null = $fileCopyError. With my understanding of PowerShell, and my limited testing, this does absolutely nothing, right?
Then there’s If ($fileCopyError){}. Where id $fileCopyError get set to anything. Perhaps understanding what $null = $fileCopyError will answer this question, but right now I’m stumped.