XrunAndWait > Unable to execute ansible playbook

Hey,
I’m trying to execute ansible playbook using below command:

{
  "Name": "test",
  "CreationDate": "2023-1-23",
  "Commands": [
    {
      "Command": "XRunAndWait",
      "Target": "/usr/bin/ansible-playbook",
      "Value": "/home/hari/Documents/ansible-learning/ansible-test.yml -i /home/hari/Documents/ansible-learning/hosts",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "${!xrun_exitcode}",
      "Value": "strng",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": " script exit code: ${strng}",
      "Value": "",
      "Description": ""
    }
  ]
}

But getting the error ‘Line 1: Error when communicating with the native messaging host.

Can someone please advise. We have uivision enterprise edition.

Hi, as a test, if you start a normal bash file instead of this playbook, does this work?