Resolve the issue of manually creating individual files by automating batch file generation from each line in a text file using PowerShell.