Local exec does not run powerhsell script for AZURE AD

local exec does not run powerhsell script for AZURE AD .
I am trying to run a Azure AD script which creates App proxy via Terraform.

Getting an error "module cannot be loaded "

resource “null_resource” “PowerShellScriptRunFirstTimeOnly” {
for_each = { for a in var.approxy: a.appname => a }
provisioner “local-exec” {
command = “script.ps1”
interpreter = [“PowerShell”, “-File”]

}

}

1 Like