title: Relative path in local-exec
body: <p>I'm trying to reference a local script inside a local-exec provisioner. The script is located several levels above the module directory. Using <code>${path.module}/../../scripts/somescript.ps1</code> generates a <code>path not found</code> error.</p>
  
  <p>Moving the scripts directory under the modules directory solves the problem but unfortunately is not a valid option in my case. Working scenario: <code>${path.module}/scripts/somescript.ps1</code></p>
  
  <p>I didn't see anywhere that it's a TF limitation or a bug so, any help is highly appreciated.</p>
  
  <p>Thank you in advance.</p>
  
  <p>This is my local-exec block: </p>
  
  <pre><code>provisioner "local-exec" { 
  interpreter = ["pwsh", "-Command"] 
  command = "${path.module}/scripts/Generate-SQLInfo.ps1 -user ${var.az_sql_server_admin_login} -dbname ${var.az_sql_db_name} -resourceGroupName ${module.resource_group.az_resource_group_name} -sqlServerName ${module.sql_server.sql_server_name} -vaultName ${module.keyvault.az_keyvault_name} -azSubscriptionID ${var.az_subscription_id}"
   }
  </code></pre>