cf logincf login

Now i attempted to execute the command from GoLang and found that it is executing in cygwin / git-bash pattern and give me the below error as output

API endpoint: https://api.sys-pcf.cf.MYCOMPANY.com
Authenticating...
Credentials were rejected, please try again.
Authenticating...
Credentials were rejected, please try again.
Authenticating...
Credentials were rejected, please try again.

I get the same error when i execute cf login from cygwin. Below is my Go code

    cf :="cf"
    login := "login"
    sso := "--sso"
    apiFlag := "-a"

    command := exec.Command(cf,login,sso,apiFlag,foundationUrl)


    stdout, err := command.Output()

    if err != nil {
        fmt.Println("Error")
    }

    fmt.Print(string(stdout))

Please tell me how to execute these commands in windows-style or through command-prompt

The os.exec package link here tells that

Unlike the "system" library call from C and other languages, the os/exec package intentionally does not invoke the system shell

Note that the examples in this package assume a Unix system. They may not run on Windows, and they do not run in the Go Playground used by golang.org and godoc.org.

I think the exec package by itself doesn't support windows shell