Use OutputCollectors instead of buffers.
Run commands with sh -c.
Change the sample command.