I'd like to add printers into a GPO via powershell because eventually I need to add 50-100 printers.
This is the process.

Then, I need to add printers inside "Control Panel Settings"

So, I created the first part of the script:
Set-GPPrefRegistryValue -Name "GPO Name" -Context Computer -Key "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Ports" -ValueName "\\PrintServer\Printer" -Value "" -Type String -Action Create
With this command, I changed the manual proccess in the dialog box

I don't need to do it anymore, but the second part, I still have to...

If I can do it via powershell like the first proccess, I would do it much faster...
May someone help me... I searched on the Microsoft Docs and only found commands to add registries... I don't know how to add local printers via powershell...