Here is the script I'm running; GC c:\test.txt | % {Set-Mailbox $_ -LitigationHoldEnabled $true}
The text file has only 2 test accounts: o365.testuser1
o365.testuser2 and no headers.
The first is not running and comes back not found. The 2nd test account runs ok.