title: Invoke-command specify scriptblock on the same line
body: <p>I was wondering is it possible to pass a tiny script into the ScriptBlock parameter but do it all in one line?</p>
  
  <p>For instance, I want to run the following 2 commands:</p>
  
  <p>import-module lync
  get-csuser</p>
  
  <p>I can do this if I have a powershell script file and call that file explicitly. The contents of the script look like this</p>
  
  <pre><code>invoke-command -ComputerName mycomputer.mylab.com -ScriptBlock {
  import-module lync
  get-csuser
  }
  </code></pre>
  
  <p>I want to be able to do the above without putting this into a temporary script file and do it on one lime. Is this possible?</p>
  
  <p>Thanks</p>