title: A positional parameter cannot be found that accepts argument 'PowerShell'
body: <p>I am trying to reboot a server locally using Tidal Enterprise Scheduler. I have a script but its giving me an error message while running it.</p>
  
  <pre><code>$Var = get-content c:\temp\HP_BPM.txt;
  $UserName=’na\sa-its-bsm_qa’
  $Password= '123456'
  $SecurePassword=Convertto-SecureString –String $Password –AsPlainText –force
  $MyCred=New-object System.Management.Automation.PSCredential $UserName,$SecurePassword
  Restart-Computer ($var) -For ’PowerShell’ -Credential $MyCred -Timeout 500 -Delay 5
  </code></pre>
  
  <p>When I am running it, its giving me an error message :-</p>
  
  <p>Restart-Computer : A positional parameter cannot be found that accepts argument 'PowerShell'</p>
  
  <p>Please assist.</p>