execute powershell using jquery

DK 46 Reputation points
2021-07-12T19:49:28.32+00:00

I have html button on sharepoint online site page and i want to validate whether current user is part of AD user or not using this button. i know jquery can not directly validate ad user so i want to write down powershell command which validate AD user and this ps script should be run by jquery on sharepoint page using content editor webpart which can have html button on it ?
can anyone help me here?
Thanks

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,628 questions
0 comments No comments
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.