Is your feature request related to a problem? Please describe.
Running a command such as:
Will only take into account nodes which are published (or can be accessed by anonymous users).
Describe the solution you'd like
The query object retrieved by the command should invoke $query->accessCheck(FALSE); so that the entity access check is ignored.
The main question is whether this should be introduced as a new no-access-check option or be the default behaviour going forward (and allowing users to opt out to keep the old behaviour).