title: Calling a powershell script from a powercli script using invoke-vmscript?
body: <p>I am attempting to execute a .ps1 on multiple VM's using the invoke-VMScript function. Currently I have the code:
  <code>Invoke-VMScript -ScriptText $script -VM $servername -guestcredential $gcred -hostcredential $hcred</code> and have <code>$script = 'data.ps1'</code> however this returns the error stating that 'data.ps1' is not a valid function or script. Any help is greatly appreciated.</p>