I am removing Bloat from new HP laptops and would like it if after each HP Bloat software didn't restart the client when it finished uninstalling. There must be a no-restart flag or argument I am missing. Can't find much online.
Powershell
$myapps='Energy Star','Discover HO Touchpoint Manger','HP 3D DriveGuard','HP Connection Manger','HP Device Access Manager','HP Drive Encryption','HP Device Access Manager','HP Documentation','HP File Sanitizer','HP PageLift','HP Setup','HP SoftPaq Download Manager','HP Software Setup','HP Support Assistant','HP Support Infotmation','HP System Defualt Setup','HP Theft Recovery','HP Client Security Manager','Microsoft Office','Skype*','Validity Fingerprint Sensor Driver'foreach($programin$myapps){Get-WmiObject-ClassWin32_Product|Where-Object{$_.Name-eq"$program"}|...