Great! That does the trick:
vmrun -T ws -gu %username% -gp %password% runProgramInGuest /path-to-my-vm.vmx "c:\ipconfig.bat"
does the job, where ipconfig.bat is a script on the guest, which dumps the output of ipconfig into a shared folder file on the host:
ipconfig > "\\vmware-host\Shared Folders\home\%username%\tmp\IP_VM.txt"
where %username% and %password% corresponds to your username and password.
Thanks and cheers, Riko