CmdID / PowerShell / Cmdlets / Remove
Remove-PrinterPort
Removes the specified printer port from the specified computer. Windows Server PowerShell reference
From the Windows Server PowerShell reference 9 parameters Its page in the reference
Parameters
-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-ComputerName, -CNSpecifies the name of the computer from which to remove the printer port.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-InputObjectSpecifies the input object that is used in a pipeline command.-NameSpecifies the name of the printer port to remove.-PassThruReturns an object representing the item with which you are working.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.