What does the following PowerShell script do? ### You can modify the provided script to save the results to a CSV file as follows:

# Set paths
$directoryPath = "path\to\your\directory"
$stopwordsFile = "path\to\your\stopwords.txt"
$outputCsvFile = "path\to\your\output.csv"

# Load the stopwords into a HashSet for quick lookups
$stopwords = New-Object System.Collections.Generic.HashSet[string] (Get-Content $stopwordsFile)

# Function to process a single file and return a dictionary of word counts
function Get-WordCount ($filePath, $stopwords) {
    $wordCount = @{}

    $content = Get-Content $filePath -Raw
    $words = $content -split '\s+' | ForEach-Object { $_.Trim().ToLower() } | Where-Object { $_ -and !$stopwords.Contains($_) }

    foreach ($word in $words) {
        if ($wordCount.ContainsKey($word)) {
            $wordCount[$word]++
        } else {
            $wordCount[$word] = 1
        }
    }

    return $wordCount
}

# Initialize the results array for CSV export
$results = @()

# Process all text files in the directory
$textFiles = Get-ChildItem -Path $directoryPath -Filter *.txt

foreach ($file in $textFiles) {
    Write-Host "Processing $($file.FullName)..."
    $fileWordCounts = Get-WordCount $file.FullName $stopwords
    foreach ($entry in $fileWordCounts.GetEnumerator()) {
        $word = $entry.Key
        $count = $entry.Value

        $results += [PSCustomObject]@{
            'Word' = $word
            'Count' = $count
        }
    }
}

# Save the results to a CSV file
$results | Export The letter o should appear at least 12 times.
user