Setting Kubernetes.CustomKubectlExecutable value during the deployment


I have an issue of setting Kubernetes.CustomKubectlExecutable value.

I would like to have several kubectl versions on Octopus server machine and I see from code line #7 that I can use variable to set custom kubectl executable name (e.g. “kubectl_1.12.5”). The problem is that I did not find a way to do it, I wanted to set during Kubernetes Target creation (doing it on a fly via PowerShell script).

Any suggestion/thoughts would be appreciated.