Consider this directory structure:
C:\temp\A\file.txt C:\temp\B
If I run the command
Copy-Item "C:\temp\A" "C:\temp\B\A" -Recurse -Force -ErrorAction Stop
I have
C:\temp\A\file.txt C:\temp\B\A\file.txt
If, starting from this new situation, I run the same command a second time, I end up with
C:\temp\A\file.txt C:\temp\B\A\file.txt C:\temp\B\A\A\file.txt
Why is the result different although I run the same command?