Copy-Item inconsistent behavior?
<p>Consider this directory structure:</p>

<pre>C:\temp\A\file.txt
C:\temp\B</pre>

<p>If I run the command</p>

<pre><code>Copy-Item "C:\temp\A" "C:\temp\B\A" -Recurse -Force -ErrorAction Stop
</code></pre>

<p>I have </p>

<pre>C:\temp\A\file.txt
C:\temp\B\A\file.txt</pre>

<p>If, starting from this new situation, I run the same command a second time, I end up with</p>

<pre>C:\temp\A\file.txt
C:\temp\B\A\file.txt
C:\temp\B\A\A\file.txt</pre>

<p>Why is the result different although I run the same command?</p>