title: Pass argument to Workflow (powershell)
body: <p>I know that you can't use Read-Host within a Workflow.  But I need to prompt the user via Read-Host and then use that input data within a Workflow.     We need to execute MSG.EXE on remote machines (since NetSend went bye bye)</p>
  
  <p>I have this code.  It runs without error but it does Not send any message.   how do I pass my argument into the Workflow so it works?</p>
  
  <pre><code>$Computers = @("mg2014","cclab2","MG11751","mg10462","mg11768","mg11786","mg11741","mg13244","mg13434","mg14464", "mg10257")
  
  workflow Test-WFConnection {
      param(
  
           [Parameter (Mandatory = $true)]
          [object[]]$message
      )
  
  foreach -parallel ($computer in $computers) {
  if (Test-Connection -ComputerName $computer -Count 1 -ErrorAction SilentlyContinue) {msg /SERVER:$computer * $msg}
  
    }
  }
  
  $msg = Read-host "Enter your message here"
  Test-WFConnection -message $msg
  </code></pre>
  
  <hr>
  
  <p>The issue is the $msg never gets sent to any machine.  </p>