@dadepu @RalfSeewaldCT you can check out Sendresults Splunk App from Splunkbase by Discovered Intelligence to format Tabular results as HTML for email.
... View more
You can pass as normal argument
| YourCUstomCommand($entered_ip_address$)
And it will be available in sys.argv
Please go through the "Handling errors" in this link
I did this once, now forgot the exact syntax.. try | YourCUstomCommand $entered_ip_address$ if the above didn't worked
... View more