With each cmdlet description you’ll find a complete example script (see the Cmdlets section). Additionally, there are simple scripts in the Practice section which describe how to create a single printer or printer port.
The following table shows which of theses scripts gives an example for which option.