Powershell script to check effective "allow logon locally" user right against a specified domain group

Job ID: 38253126

Budget: $25 – $50 AUD

I am in need of a Powershell script that can quickly determine if a passed domain group like "Domain Admins" has effective permissions to the allow logon locally user right in a Windows 10 environment.

The function should return a bool and look something like this
"Domain Admins" | CheckLoginLocally

This way I can pipe any group to it like:
"Domain Users" | CheckLoginLocally

Key requirements and details include:

- I'm looking for a Powershell script that will only return the final result as True or False.
- The script should solely focus on determining if the piped group has effective permissions to the allow logon locally user right.
- The project needs to be completed as soon as possible.

The ideal freelancer for this project should have:
- Proficient in Powershell scripting
- Familiarity with Windows 10
- Understanding of Windows groups, permissions and user rights.

I hope you are able to use an API like GetEffectiveRightsFromAclA or another, but if you had to do it manually, you would need to take in to account:
* Group Policy over rights local policy
* Deny Log On Locally over right Allow Logon Locally.

Your prompt response and completion of this project is highly appreciated.