Servicenow Powershell scripting

Hello Powershell Community,

I’ve one requirement for AD orchestrations for privileged access requests for CMDB applications. Where I need to check the Windows service account name in AD, is this Application account is already available in AD or not?

Can anyone suggest a way of doing it? As I’m new to ITOM and have very little knowledge of PowerShell scripting.

our Windows service account naming convention format is: S-(Application name)-(Purpose)