Import-Module PrintManagement
wmic path win32_printjob where "jobid=5" delete clear print queue cmd
Your print queue is now empty. You can try printing a test page to verify. clear print queue cmd
On some Windows editions, the module loads automatically. To force load: clear print queue cmd