It looks like it is accepting the $Computers
variable as a string
instead of a string[]
(array).
You need to put it through a loop to specify a newline after each set of hotfixes:
$computers = gc ServerListFile.txt
ForEach ($computer in $computers) {
# You could even put the computer name at the beginning of the hotfixes
"Hotfixes for $($computer)" | Out-File hotfixes.log -a -en ASCII
# Get the hotfixes and output to text file
Get-Hotfix -computer $computer | Out-File hotfixes.log -a -en ASCII
# Add a new line after each computer's hotfixes
"`n" | Out-File hotfixes.log -a -en ASCII
}