In macOS Sierra there’s a new Storage Management option. One way to get to it is via
/Applications/Utilities/System Information.app (then with the app open)
I’d like to accomplish all that programatically, including closing the
System Information.app window.
If there’s a solution it’ll likely involve AppleScript or JXA, but I’m not picky on the method.