FileHandling/New-EmptyDirectory.ps1

Function New-EmptyDirectory
{
    Param(
        [Parameter(Mandatory=$true)]
        [string]$DirectoryPath
    )

    if([IO.Directory]::Exists($DirectoryPath))
    {
        Remove-Item $DirectoryPath -Recurse -Force
    }
    
    [IO.Directory]::CreateDirectory($DirectoryPath) | Out-Null
}

Export-ModuleMember -Function New-EmptyDirectory