Run eqs query without runEQS task

how to use eqs query without using the run eqs query task? because i wanted to use it in my FSM not from Behavior Tree. jejjee. i try to mimic the run EQS query task. but it throw me lot bunch of error from EnvQueryTypes. don’t know why?..