Instead of piping a scalar value to Out-Null, you can also cast it to [void].

To seek over two bytes, you can also use
`[void]$stream.Seek(2,"Begin")`

But the best solution may be to strip of those two bytes from the beginning of the compressed stream in the Ruby code that compresses it.