function Rename-Volume { $Comics = Get-ChildItem
foreach ($Comic in $Comics) {
$Volume = (($Comic.PSParentPath -split "/")[-1] -split " ")[1]
Move-Item -Path $($Comic.FullName) -Destination $($($Comic.Fullname) -replace "Vol\.\d+", "Volume $Volume")
$Comic | Where-Object { $_.Name -eq "series.json" -or $_.Name -eq "folder.jpg" -or $_.Name -eq "cover.jpg" } | Remove-Item
}
}