xxxxxxxxxx
$directoryPath = "C:\path\to\your\directory"
# Check if the directory exists
if (-not (Test-Path -Path $directoryPath)) {
# Directory does not exist, so create it
New-Item -ItemType Directory -Path $directoryPath
Write-Host "Directory created at $directoryPath"
} else {
# Directory exists
Write-Host "Directory already exists at $directoryPath"
}