Can't download Docker-Machine

I’m on Windows and I opened git bash and posted this command:

if [[ ! -d “$HOME/bin” ]]; then mkdir -p “$HOME/bin”; fi &&
curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-Windows-x86_64.exe > “$HOME/bin/docker-machine.exe” &&
chmod +x “$HOME/bin/docker-machine.exe”

It say this

bash: syntax error near unexpected token `then’

I tried the same command in cmd and it says this:

The system cannot find the path specified.

Don’t know if this is the problem or if this happened with the forum formatting but it looks like you’ve got smart quotes instead of dumb ones. I’ve copied your sample and replaced them below for convenience.

if [[ ! -d "$HOME/bin" ]]; then mkdir -p "$HOME/bin"; fi &&
curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-Windows-x86_64.exe > "$HOME/bin/docker-machine.exe" &&
chmod +x "$HOME/bin/docker-machine.exe"