I have a CSHTML file which has a block <script type="text/javascript"></script> inside.
It will show usernames:
for (var i = 0; i < result2.Users.length; i++) {
var item = "<li style='width:100%;'>" + result2.Users[i].TchatEngineId.toString() + " | " + result2.Users[i].Pseudo + "</li>";
Now I want to get this result in Powershell, anyone knows how to do it?
I tried with Invoke-RestMethod and Invoke-WebRequest, but it always returns the source code HTML and not the result.