cd "c:\Users\a.dchar\Documents\privé\lab\lastwebnovel\content\novels"

$renames = @(
    @('Astral Pet Store', 'astral-pet-store'),
    @('dimensional-keeper', 'omniscient-readers-viewpoint'),
    @('emperor_s domination', 'emperors-domination'),
    @('I Became the Male Lead_s Adopted Daughter', 'i-became-the-male-leads-adopted-daughter'),
    @('Infinite Mage [Remake]', 'infinite-mage-remake'),
    @('My Disciples Are All Villains', 'my-disciples-are-all-villains'),
    @('Nano Machine', 'nano-machine'),
    @('Reaper of the Drifting Moon', 'reaper-of-the-drifting-moon'),
    @('Reincarnation Of The Strongest Sword God', 'reincarnation-of-the-strongest-sword-god'),
    @('remarried empress', 'remarried-empress'),
    @('Silint Witch', 'silent-witch'),
    @('The Eternal Supreme', 'the-eternal-supreme'),
    @('The Great Mage Returns After 4000 Years', 'the-great-mage-returns-after-4000-years'),
    @('The Player Hides His Past', 'the-player-hides-his-past'),
    @('The Steward Demonic Emperor', 'the-steward-demonic-emperor'),
    @('turns out i_m in a villain clan', 'turns-out-im-in-a-villain-clan')
)

foreach ($rename in $renames) {
    $old = $rename[0]
    $new = $rename[1]
    if (Test-Path $old -PathType Container) {
        Rename-Item -Path $old -NewName $new -Force
        Write-Host "Renamed: '$old' -> '$new'"
    } else {
        Write-Host "Not found: '$old'"
    }
}

Write-Host "Done!"
