$folderName = (Get-Date).tostring(“dd-MM-yyyy”)
$root=”E:Desktop”
$path=$Root+$folderName
if (!(Test-Path $Path))
{
New-Item -itemType Directory -Path $root -Name $FolderName
}
else
{
write-host “Folder already exists”
}