To clear a print queue using PowerShell open an elevated PowerShell prompt and run the following commands: