There is no Lazarus specific example.
MiletusShell.Execute
can be used like this:
//Don't forget to mark WebButton1Click as async
procedure TForm1.WebButton1Click(Sender: TObject);
var
s: string;
begin
s := TAwait.ExecP<string>(MiletusShell.Execute('ls'));
WebMemo1.Lines.Add(s);
end;
Already provided a sample for TMiletusINIFile
here: Lazarus, TMS WEB Core and TMiletusFirebirdDBDriver demo - #5 by Tunde
You don't need to leave Pascal. Our VSC product works with Object Pascal. See our announcement blog article.