title: Continually Monitor file creation then set-ACL permissions
body: <p>at the moment I have the following code:</p>
  
  <pre><code>$Ac = Get-ACL “C:\test” 
  $Ab = New-Object system.security.accesscontrol.filesystemaccessrule(“user”,”FullControl”,”Allow”)
  $Ac.SetAccessRule($AB)
  Set-ACL “C:\test” $Ac
  </code></pre>
  
  <p>This currently gives the user full control to the file. My questions is how can I monitor a specific folder continually and whenever a new file is created, I run the above code on it.</p>
  
  <p>Thanks.</p>