title: run powershell in VBA access
body: <p>I need to change a string in multiple text files </p>
  
  <p>I have written the script below in ACCESS VBA but the error is TYPE MISMATCH</p>
  
  <pre><code>Dim str As String
  str = "N=maher"
  Call Shell("c:\windows\system32\powershell.exe" - Command("get-content -Path e:\temptest.txt") - Replace(str, "maher", "ali"))
  </code></pre>