pwsh fs
$delPath="x:\y\z\"
If (Test-Path $delPath){
Remove-Item $delPath -Recurse -Force
}
$tpath = "u:\v\w"
If(!(test-path -PathType container $tpath))
{
New-Item -ItemType Directory -Path $tpath
}
Copy-Item -Path "d:\data\bin\*" -Destination $tpath -Recurse -Force