Differences between commands run in .bat file and cmd.exe : I wanted to download scoop installer and I find out that my command is not working in a .bat file but works when I copy/paste it in powershell.

Here is the command and a picture to make things perfectly clear : 

    iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

[output of powershell][1]

Could somebody explain to me why it is the case and maybe the things that we need to be aware of when we put commands in .bat file ? 


  [1]: https://i.stack.imgur.com/8lHT0.png