Did you get any error while running it in windows?
Did you enable “less secure apps” in your gmail account? Are you sure that the credentials entered are the correct ones?
Also it is useful to wrap the password with quotes like: -p “myPassw0rd!”
Let me know.