Implement privilegedCommandImpl.