Sometimes the thing to measure is not available as file or folder (or that path isn't hardcoded), and one might want to define a shell command to retrieve it. An example are docker image sizes where you have to run
docker image inspect <image> --format='{{.Size}}'
But that might be better covered by #45.
Might be a new config sizeScript.