Hello there,
To use the Group Policy PowerShell cmdlets, you must have GPMC installed on the device where you will run the cmdlets. To check if the Group Policy PowerShell module is installed on a device, run the command below, which will display all the available Group Policy cmdlets available if the module is installed.
Get-Command -Module GroupPolicy
Maybe this module might be helpful for you in understanding the process of GPO.
This topic contains brief descriptions of the Windows PowerShell cmdlets that are for use in administering Group Policy in Windows Server and Windows client with Remote Server Administration Tools (RSAT) installed. (RSAT includes the GPMC and the Group Policy cmdlets.) https://learn.microsoft.com/en-us/powershell/module/grouppolicy/?view=windowsserver2022-ps
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–