Please find my YAML below
You don’t mention which ansible version you are using, but I think latest devel version and possible 2.4.1 has some improvements to argument handling for win command.
If you are using an older ansible version, I suggest trying win_shell. Make sure groovy is on your PATH (or use the args: chdir option of win_command / win_shell so that the command itself can be found too).
There’s a very useful page about how to form windows paths in yaml for ansible playbooks recently been added to the documentation here: https://docs.ansible.com/ansible/devel/windows_usage.html#path-formatting-for-windows
Hope this helps,
Jon