title: How do I check if all the returned values are true?
body: <p>Is there a simple way to ensure that all values returned are True? In the example below, I have a collection of objects which represent file. I want to make sure that all the sources file exist before proceeding. I pass all the paths to Test-Path and the function returns True/False for each file.</p>
  
  <pre><code>    &gt; $filesToUpdate = @(
        [PsCustomObject] @{ Source = (Join-Path $basePath "Abc.module"); }
        [PsCustomObject] @{ Source = (Join-Path $basePath "Def.module"); }
      )
  
      &gt; $filesToUpdate.Source | Test-Path
  
      True
      True
  
      &gt; # How can I check if all the returned values are true?
  </code></pre>
  
  <p>How do I check all the returned values are True?</p>