I need to run kubectl commands simultaneously in JAVA for different EKS clusters

  amazon-eks, amazon-web-services, cmd, java, windows

I want to get data for two EKS clusters via JAVA.
But if I run ‘aws eks update-kubeconfig’ command. I am able to get data for only one of them.
Can anyone suggest me a better idea?

Source: Windows Questions