I want to control automated test which needs two virtual machines

I want to control automated test which needs two virtual machines. Based on status of test on machine1, I want to start tests on Machine2. Is it possible to achieve this using Jenkins?
Is it possible to do so using Ranorex integrated with Jenkins??

I don’t know what ranorex is, but this is pretty trivial via pipelines

(Forgive me on the phone)

Pipelines {
  Stages {
    Stage('test 1') {
      Agent { label 'vm1' }
      Steps { bat("run thing") }
    }
  }
}

If you can do it via a cli, Jenkins can do it.