Is there an equivalent to iwr https://deno.land/install.ps1 -useb | iex
for .bat
files? I would like to run install-bin-windows.bat
from https://yihui.org/tinytex/#installation without manually downloading and executing the file.
This is the error I got when I attempted to pipe the content of the .bat
file to iex
PS C:\Users\shara> iwr https://tinytex.yihui.org/install-bin-windows.bat -useb | iex
Invoke-Expression:
Line |
1 | iwr https://tinytex.yihui.org/install-bin-windows.bat -useb | iex
| ~~~
| Missing opening '(' after keyword 'for'.