How to access macOS commands in Visual Studio Core app

I have just installed Visual Studio Core on a Mac community edition and have launched the default web app and am looking to build a web app that reads output of a command from MacOS.

For example, I'd like to display the results of an

 ls -l | grep 'bigfile' 

inside a core web app via Visual Studio Core on a Mac.

Is that possible? Could you provide me the code example for doing so? Not sure how to access the Mac system commands in a core web app.