I am getting below error in powershell while executing docker-compose command:

While same command is working fine from Docker Quickstart Terminal:

Make sure you have set the right environment variables in your Powershell session first.
See docker-machine env:
$ docker-machine.exe env --shell powershell dev
$Env:DOCKER_TLS_VERIFY = "1"
$Env:DOCKER_HOST = "tcp://192.168.99.101:2376"
$Env:DOCKER_CERT_PATH = "C:\Users\captain\.docker\machine\machines\dev"
$Env:DOCKER_MACHINE_NAME = "dev"
# Run this command to configure your shell:
# docker-machine.exe env --shell=powershell dev | Invoke-Expression
Replace 'dev' by the name of your machine.