Just run ps1 file. It'll guide you.
Powershell scripts are disabled on Windows by default. To run a powershell script you have to change execution policy.
Ex.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
.\minecraftModInstaller.ps1