$WUInstallScript = { Import-Module C:\Path\PSWindowsUpdate.psm1; Get-WUInstall -AcceptAll -AutoReboot}
Invoke-WUInstall -ComputerName $hostname -Script $WUInstallScript
I am running this command but Invoke-WUInstall pops up that whether I want to confirm this action. I want to invoke this silently. Is there any option to do this?