You can retrieve all objects that have a specific tag assigned to them.

Verify that you are connected to a vCenter Server system.

Get all virtual machines tagged with the SalesDptTag tag.

Get-VM -Tag 'SalesDptTag'

You can only specify a tag filter parameter for the VM, VMHost, Datastore, and VirtualPortGroup object types.