How i can i run laravel dusk test cases on front-end?

My current situation is like i have a button when i click on that a single particular test case which was created using laravel dusk should run and it’s log should display in browser like Passed/Failed how much time taken etc.

I tried exec() and shell_exec() for execute a dusk command but it shows me error ‘FacebookWebDriverExceptionInternalWebDriverCurlException: Curl error thrown for http POST to /session/bf290732b699eca73947777aa65c56f0/url with params: {“url”:”http://localhost:8000/enterprise/login”}
‘ error.
I had also tried Artisan::call(‘dusk’) but it says ‘dusk command not found’.
Laravel dusk liabrary is installed in my local system and when i execute this command on command prompt it works as expected but didn’t work through PHP code.

Is there any way to achieve my desired solution??
Any help will be appreciated..