Retrieving values from MikroTik

simple issue… I declare local variables in script, but need to see the value thereof in the output…

I use plink (putty) to execute commands on my MikroTik. Actions like ppp active print returns all the values but simpler statements returns NULL.

[ppp secret get [/ppp secret find name=john] password]
return NULL - even in a terminal window.

Any idea to get these values?