Create folder

clear
$folderName = (Get-Date).tostring(“dd-MM-yyyy”)
$Path = "C:\files\" +$FolderName

if (!(Test-Path $Path))
{
New-Item -itemType Directory -Path C:\files -Name $FolderName
}
else
{
write-host "Folder already exists" -ForegroundColor Red
}