Move-Item from sub folder to second subfolder using variable destination
<p>I'd like to move all the files in multiple folders into a subfolder within those folders.</p>

<p>So from <code>C:\Desktop\Folder</code> to <code>C:\Desktop\Folder\cv</code>.</p>

<p>I'm having difficulty targeting the correct destination, so far I've tried:</p>

<pre><code>Get-ChildItem *cv -Recurse -Exclude "cv" | Move-Item -Destination {"C:\Desktop\$($_.Name)\cv"} 
</code></pre>

<p>I'm using Windows PowerShell.</p>

<p>EDIT: For those interested I've found a way to do this using CMD:</p>

<pre><code>FOR /D %G IN ("*cv") DO robocopy /move "%~G" "%~G\cv" "*"
</code></pre>

<p>I'd still like to know how to do this using PowerShell, though.</p>