I wouldn't worry too much about response prompts, etc.
You can just do:
conf t
logging 1.1.1.1
exit
And then select the option to save the config.
Response prompts are useful if you need to check specific output, but for a one-line change I wouldn't be too worried about it.
If you've got SNMP read-write access, you could just deploy as a segment, in which case you only need "logging 1.1.1.1"