# Prompt the user for a directory $directory = Read-Host "Enter the path to the directory you want to scan" # Check if the directory exists if (-Not (Test-Path $directory)) { Write-Host "The directory does not exist. Please check the path and try again." exit } # Get all .mp4 files recursively $mp4Files = Get-ChildItem -Path $directory -Recurse -Filter *.mp4 # Loop through each .mp4 file found foreach ($file in $mp4Files) { # Define the .en.srt file path $srtFilePath = "$($file.DirectoryName)\$($file.BaseName).en.srt" # Create the .srt file with the specified content $content = "1`r`n00:00:00,000 --> 00:00:00,000" Set-Content -Path $srtFilePath -Value $content } Write-Host "Dummy .srt files with content have been created for all .mp4 files in the directory."