How to evaluate my move with UCI engine? I am looking for a way to analyse the moves I play. I'm NOT looking for a suggestion of a GUI that does this, or using Chessbase to do this. I want to know how to do this by communicating directly with the UCI engine.

For example, when I tell the engine:

position startpos moves e2e4 e7e5 d2d4  g7g6

go depth 30

it returns the best move in this position:

info nodes 11295495 score cp -40

bestmove f7f5 ponder g8f6

But what I want is the evaluation of my latest move g7g6. How do i get that?
Enable multipv on the engine. When you are at "e2e4 e7e5 d2d4" it will list all possible best moves that the engine considers in order of their evaluation. If you find "g7g6" in this list, then what you have considered is one of the best moves also considered by the engine and you'll obviously have the score associated with "g7g6". So, you will find this information before you make the move "g7g6".