title: Return an object variable from a script - Azure YAML pipelines
body: <p>Consider the following simplified pipeline:</p>
  <pre><code>### template.yml ###
  parameters:
    - name: &quot;tables&quot;
      type: object
      default: {}
   
  steps:
    - ${{ each table in parameters.tables }}:
        - task: BackupTask@0
          displayName: &quot;Backup ${{ table }}&quot;
  </code></pre>
  <pre><code>### pipeline.yml ###
  - template: template.yml
    parameters:
      tables:
        - &quot;table1&quot;
        - &quot;table2&quot;
        - &quot;table3&quot;
        - &quot;table4&quot;
        - &quot;table5&quot;
  </code></pre>
  <p>What I would like is that the list of tables are generated with a bash script instead of having to write them by hand. So every time a new table is created it gets automatically backed up by the pipeline.</p>