Functions/folders.ps1
function New-Folder( [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [string]$folderName) { if (!(Test-Path $folderName)) { Write-Warning "folder '$folderName' not found! Attempting to create..." mkdir $folderName } else { Write-Host "folder already exists '$folderName'" } } |