[Byte[]] $bytes = 0x90,0x90,0x90,0x9 [io.file]::WriteAllBytes('out.exe', $bytes) # Get-Content('test.txt') | Format-Hex