title: Powershell: call Word Sub with parameter doesn't work
body: <p>I have 2 vba subs that I want to call from Powershell ISE; I can call wordsub successfully, but calling wordsub1parameter doesn't trigger msgbox and there's no error in log:</p>
  
  <pre><code>Sub wordsub()
  
  MsgBox ("hello from sub")
  
  End Sub
  
  Sub wordsub1parameter(greetings)
  
  MsgBox (greetings)
  
  End Sub
  </code></pre>
  
  <p>Powershell script:</p>
  
  <pre><code>$file = "C:\test\test.docx"
  
  $Word = New-Object -ComObject Word.Application
  $Word.Visible = $True
  
  $Document=$Word.documents.open($file)
  
  $Word.run("wordsub")
  $Word.run("wordsub1parameter", "hello")
  </code></pre>
  
  <p>Is it impossible ?</p>