Restore and deprecate -executeCommand: