CVLEMAMMRF-162: Record history of workbench

Add common function for tool in order to record stdin/out/err