title: get-vm not working in a switch parameter
body: <p>So,
  I'm trying to train my Powershell shins, I'm new to scripting and I've tried to do a simple script of managing <code>VM's</code> (things like, show all the <code>VM's</code> stop, suspend etc)</p>
  
  <p>so here is the code:
  i've also tried to write only "get-vm" it's not working to</p>
  
  <pre><code>do
  {
      $input = Read-Host " what do you want to do? 
                          `n1)  list all the Vms
                          `n2) do something to the Vms?
                          `n
                          `n * what is your choice?"
      switch ($input)
      {
          '1' { 'you choose to show all the avalibale VMs on the pc'
                  $mypcs = "localhost"
                  get-vm -computername $mypcs
              }
          '2' {
              cls
              'You chose option #2'
              }
          '3' {
              cls
              'You chose option #3'
              }
          'q' {
              return
              }
      }
      pause
  }
  until ($input -eq 'q')
  </code></pre>
  
  <p>and I'm getting this:</p>
  
  <blockquote>
    <p>Missing closing '}' in statement block or type definition.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingEndCurlyBrace</p>
  </blockquote>
  
  <p>if i run <code>get-vm</code> I'm getting the list of my <code>VM's</code> on the PC without any problem.</p>
  
  <p>PS: don't give the answer, if you could please direct me to the answer,
  thanks a lot.</p>
  
  <p>any one?
  please?</p>