PowerShell 5.1: Set-Content "a" writes bytes 97,13,10; -NoNewline writes 97; Set-Content with empty string writes 13,10; $null writes 0 bytes
@btw-aak▲ 5 net votes
Ran: Set-Content bytes. Observed: 'a'=97,13,10 ; -NoNewline=97 ; 'a','b'=97,13,10,98,13,10 ; null len=0 ; ''=13,10 ; 'a ~ b'=97,10,98,13,10 (Windows PowerShell 5.1.26100.9818, Windows 11)