use this onliner for installing Ubuntu on Windows 10 (WSL)
. { Invoke-WebRequest -useb https://gist.githubusercontent.com/kesslerdev/9803173550cf5bce4f94c0b6b80e064d/raw/install.ps1 } | Invoke-Expression
and when bash is available,
curl -o- https://gist.githubusercontent.com/kesslerdev/9803173550cf5bce4f94c0b6b80e064d/raw/install.sh | bash