code: def stop(name, kill=False, runas=None):
      '''
      Stop a VM
  
      :param str name:
          Name/ID of VM to stop
  
      :param bool kill:
          Perform a hard shutdown
  
      :param str runas:
          The user that the prlctl command will be run as
  
      Example:
  
      .. code-block:: bash
  
          salt '*' parallels.stop macvm runas=macdev
          salt '*' parallels.stop macvm kill=True runas=macdev
      '''
      # Construct argument list
      args = [salt.utils.data.decode(name)]
      if kill:
          args.append('--kill')
  
      # Execute command and return output
      return prlctl('stop', args, runas=runasf stop(name, kill=False, runas=None):
      '''
      Stop a VM
  
      :param str name:
          Name/ID of VM to stop
  
      :param bool kill:
          Perform a hard shutdown
  
      :param str runas:
          The user that the prlctl command will be run as
  
      Example:
  
      .. code-block:: bash
  
          salt '*' parallels.stop macvm runas=macdev
          salt '*' parallels.stop macvm kill=True runas=macdev
      '''
      # Construct argument list
      args = [salt.utils.data.decode(name)]
      if kill:
          args.append('--kill')
  
      # Execute command and return output
      return prlctl('stop', args, runas=runas)
docs: Stop a VM
  
      :param str name:
          Name/ID of VM to stop
  
      :param bool kill:
          Perform a hard shutdown
  
      :param str runas:
          The user that the prlctl command will be run as
  
      Example:
  
      .. code-block:: bash
  
          salt '*' parallels.stop macvm runas=macdev
          salt '*' parallels.stop macvm kill=True runas=macdev