CreateFolder-Using-Powershell

Example

#Creates a folder if it doesn't excist
function CreateFolder([string] $ApplicationFolder)
{  
    if (Test-Path $ApplicationFolder)
    {
        Write-Host "Folder already exist, no need to create it again"
    }
    else
    {
        New-Item $ApplicationFolder -type Directory
        Write-Host "Folder created:$path"
    }
}#function CreateFolder

Copy and Try it