Running a javascript command using powershell

I am using Powershell with Selenium to launch Chrome browser.

$browser = Start-SeChrome
$url = 'https://www.freepik.com/profile/login'
$browser.Navigate().GoToURL($url)

Now using Google dev tools I am able to run this command “___grecaptcha_cfg.clients[0]” . How do i run this or something similar using Powershell. I basically want to save the output of the command to a variable in Powershell

Thanksenter image description here


        

You can explore the $browser object. There should be some property/method which will give you the data. If its an Internet Explorer COM object, it will be like $browser.document

[quote quote=271738]You can explore the $browser object. There should be some property/method which will give you the data. If its an Internet Explorer COM object, it will be like $browser.document

[/quote]
Thanks. Although it does not show. See https://www.freepik.com/profile/login

So, I just trying to run the command using powershell. I am not asking to convert the command to powershell.

I want to call the same javascript command using powershell. I know there are ways to do this, but I not able to get the syntax right.