getting the command output to display in a table