Change signature of managementCommand, see #2877