Hello @msmafra, thanks for the feedback, but in general, running games from outside of Steam is not supported and expecting Steam to know that an arbitrary executable that was started on a system is a game that it should be tracking is something we wouldn't want it to be doing for anyway.
Please describe your issue in as much detail as possible:
To run the game via custom command line or .destkop file and it use the Steam API.
Steps for reproducing this issue: