Fixed the issue of writing ieumerable to pipe
Fixed piping in the resource  cmd lets
UT is passing