Finding the right tool for the job is important. Because Print To PDF is an optional feature, there are a set of tools specifically designed to handle it.
The other PDF printers you are dealing with are not Windows Optional Features, and they ARE likely to consist of software and services and not just printers. You'll want to use their appropriate uninstallers in order to remove them correctly.
Powershell has the following cmdlets:
PS D:\> get-command -noun "WindowsOptionalFeature"
CommandType Name Version Source
----------- ---- ------- ------
Cmdlet Disable-WindowsOptionalFeature 3.0 Dism
Cmdlet Enable-WindowsOptionalFeature 3.0 Dism
Cmdlet Get-WindowsOptionalFeature 3.0 Dism
Using these you can query the list of optional features:
PS D:\> Get-WindowsOptionalFeature -online | where state -eq "Enabled" | select FeatureName
FeatureName
-----------
Printing-PrintToPDFServices-Features
And you can disable them:
PS D:\>disable-windowsoptionalfeature -online -featurename Printing-PrintToPDFServices-Features
Path :
Online : True
RestartNeeded : False
And enable them:
PS D:\> enable-windowsoptionalfeature -online -featurename Printing-PrintToPDFServices-Features
Path :
Online : True
RestartNeeded : False
H/T to this SO question: https://stackoverflow.com/questions/35479080/how-to-turn-windows-feature-on-off-from-command-line-in-windows-10