Compile.ps1 repository.
Copy compile.ps1 to your maps directory and unblock the script with Unblock-File:
Unblock-File
Unblock-File compile.ps1
To run this script with all available cores, open a powershell terminal, cd to this directory and run:
.\compile.ps1
To override the number of cores used to compile, set the Cores param when calling the script:
.\compile.ps1 -Cores 2