Get tasks/ip

i was wondering if theres a way to get the actual task and ip of a host.

To understand what im doing:
In the manuals chapter 18.3

I want to use the command like described:
gvm-script -c /.../etc/gvm-tools.conf ssh --hostname $USER1$/ -F $HOSTADDRESS$ --last-report -T $ARG1$ --status

But for the variable $ARG1$ and $HOSTADDRESS$, i have to give the name/ip manually.

How can i get the informations so that i can reference the ouptut to $ARG1$ and $HOSTADDRESS$?