topic,counter,details1,details2
books,3,green,red
books,5,green,yellow
books,1,green,red
books,2,green,red
books,8,blue,grey
house,1,green,green
house,2,red,red
house,5,green,green
If columns 1, 3, 4 of a line are equal and there are duplicated in list then they should consolidated.
So results should look like. So line 3,4,8 are eliminated and the counters for line 1 and 6 increment.
books,6,green,red
books,5,green,yellow
books,8,blue,grey
house,6,green,green
house,2,red,red
Any idea how to realize this in PowerShell?