title: I am using a Batch File to search a list of functions for an exact match, wondering if its possible to do a keyword search instead
body: <p>I am using a Batch File to search a list of functions for an exact match, wondering if its possible to do a key word search, so right now i have to type "open cmd" 
  (variations on spacing and capital letters are accounted for) 
  Id like to switch it over to a system that can look for "cmd" and perform the action so "hey, open cmd please" would yield the same result as the old system</p>
  
  <p>Old system:</p>
  
  <pre><code>setlocal
  :: /STARTUP
  set speech=start scripts\nircmd.exe speak text
  cls
  :begin
  set TALK=TypeSomething
  SET /P TALK=
  set TALK=%TALK:?=%
  call :%TALK: =% 2&gt;NUL
  if %errorlevel% equ 0 goto begin
  exit /B 0
  :unknown
  echo Old function no longer supported 
  :opencmd
  :BOSopencmd
  :cmd
  echo Command Prompt has now been opened in a new window, sir.
  %speech% "Command Prompt has now been opened in a new window, sir."
  start scripts\cmd.bat
  exit /B 0
  </code></pre>
  
  <p>It is based of a chat bot i tried to make in middle school so the %speech% is not an important item, i can add that and the echo later. I just need a system that works like the old one if possible. The other i can have any number of functions with </p>
  
  <pre><code>:cmd
  start cmd
  Exit /B 0
  </code></pre>
  
  <p>or</p>
  
  <pre><code>:reddit
  start http://www.reddit.com/
  exit /B 0
  </code></pre>
  
  <p>at these need to be able to stack. I can transition to having scripts for each function in a separate batch files if needed. Ive tried trying findstr but it wasn't giving the desired results. Ive exhausted my knowledge on what i might be able to do but I've come up short lol, If you are having trouble understanding what i'm asking don't hesitate to let me know</p>
  
  <p>I learn by taking things apart so partial code is appreciated but will not be much help until after I've figured out what does what . </p>