Re: how to disable "lookup user groups" via command line
Please read FAQ
https://winscp.net/eng/docs/faq_script_ini
Though I do not think your problem is related to ": groups: not found.". It's more likely releated to: "Automatic actions are disabled when URL address is provided on command-line."
Instead of "scp://root:mypassword@HostIP:22" on command line, you should do "open scp://root:mypassword@HostIP:22" from your script file.
https://winscp.net/eng/docs/faq_script_ini
Though I do not think your problem is related to ": groups: not found.". It's more likely releated to: "Automatic actions are disabled when URL address is provided on command-line."
Instead of "scp://root:mypassword@HostIP:22" on command line, you should do "open scp://root:mypassword@HostIP:22" from your script file.