handlers/exec/init.map.ps1

[ordered]@{
    "build" = {
        param([bool][switch]$noRestore)

        $a = @()
        if ($noRestore) {
            $a += "--no-restore"
        }
        dotnet build @a
    }
}