I've found and modified this PowerShell script as a solution for this but it's not copying the files that are in the source folder. It's only copying the folder itself.
$date=get-date format d
$date=$date -replace "/", "-"
$destpath = "$date"
$storage=new-item -path \\192.168.3.212\c$\fileshares -name $destpath -type directory
copy-item -path D:\bk -destination $storage