title: function inside a loop - powershell
body: <p>How do I call a function inside loop? I'm trying to run an infinite loop that will run a function(s). I have something like this</p>
  
  <pre><code>#Infinite loop to filter file
  while ($true){
      #run this function
      filterFile
  }
  
  
  function filterFile{
     #do filtering of files here
  }
  
  function anotherFunction{
      #another function 
  }
  </code></pre>
  
  <p>If it possible how can I achieve it, if not is there other way?</p>