See the accompanying post To run it, powershell -executionpolicy bypass -file .\preparewsl.ps1 The powershell script will call the bash script.