how can i use apt-get in powershell?

I have wrote

FROM mongo:3
RUN apt-get update -q  && apt-get dist-upgrade -y && apt-get  clean && apt-get autoclean 

in sublime. I want to docker build -t db .

but i have errors.

I have errors in powershell:

 $ErrorActionPreference = 'Stop'; apt-get update -q && apt-get dist-up ...
+                                                    ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:79
+ ... nce = 'Stop'; apt-get update -q && apt-get dist-upgrade -y && apt-get ...
+                                                                ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:96
+ ... -get update -q && apt-get dist-upgrade -y && apt-get clean && apt-get ..

Source: StackOverflow