The most popular answer for this question involves the following Windows powershell code (edited to fix a bug):
$file1 = Get-Content C:\\temp\\file1.txt $f
Perhaps instead of
$LeftSide = ($Diff | Where-Object {$_.SideIndicator -eq '<='}).InputObject
PowerShell 2 might work better with:
$LeftSide = $Diff | Where-Object {$_.SideIndicator -eq '<='} | Foreach-object { $_.InputObject }