title: COS ZF Command return Service
body: <p>In COS I would like to return all the service with a specific name. In command running the command sc queryex type= service state= all | find /i "BFE" and it will display the service name. In COS there is $ZF that can take in a command but it return 0 not sure what i am doing incorrect.</p>
  
  <pre><code>USER&gt;s cmd = "sc queryex type= service state= all | find /i ""BFE"""
  
  USER&gt;W cmd
  sc queryex type= service state= all | find /i "BFE"
  USER&gt;set rc=$zf(-2,cmd)
  
  USER&gt;W rc
  0
  </code></pre>