# Set the folder path where the MP3 files are located $folderPath = "C:\Path\To\Your\Folder" # Get all MP3 files in the folder $mp3Files = Get-ChildItem -Path $folderPath -Filter "output_*.mp3" # Rename each MP3 file by removing the "output_" prefix foreach ($file in $mp3Files) { $newName = $file.Name -replace "^output_", "" Rename-Item -Path $file.FullName -NewName $newName }