Creating a Command with Custom Variable

Hello,

Bare with me, I’m still new to Icinga Director and I couldn’t find my answer in the documentation. I’ve created a custom command in Director and instead of having it ping the IP Address or Hostname, I want it to ping a custom variable, which is two different IP Addresses. I’ve already setup the field/custom variable and added it to my host and configure it to be an array so that I can define multiple IPs. What I’m trying to do is have the custom command ping whatever is the custom variable in that field without having to define it in the custom command. I’ve also added the variable to command, however I can’t seem to modify it so that it uses the custom variable and not the host’s IP or hostname.

thanks!
Below are the details about my icinga environment
Screen Shot 2023-04-20 at 4.11.21 PM