Find and substitute environment variables in Command string