I disagree that it supposed to be adhoc and hack. Look at PowerShell.
That under limited OSes such as DOS. Under Unix, piping has been the philosophy.
There are exchange formats that are well-defined enough to be useful to many computers while also being readable enough to be traversed by human eyes. There's no reason to everything ad-hoc, you don't get much by that. You also control the shell itself - there's no reason you can't display object representations in a pretty way.
Command line scripting is supposed to be adhoc and hack.