You can use the --json flag to get machine-readable output of protection operations:
nrfutil device protection-get --json
nrfutil device protection-set All --json
This is useful for scripts or automated processing. See Printing output in JSON for more information.