Uninstall several software

Hi

I use this command:

Get-Package -Name panelbit | Uninstall-Package -Force

The command didn’t finish and go to the next step.
How can I do that the command and it will wait until it finish to uninstall?

(I dont want to use the sleep or wmi command)

thanks

These are native PowerShell CmdLets for VERY recent versions of PowerShell.
(PackageManagement Module - PowerShell | Microsoft Docs)
I can’t help much with that stuff.

All I can recommend is don’t use pipelining so much.
It’s very hard to troubleshoot and provides no logging.