I have a script which installs windows updates, but the script fails if there are no updates to be installed.
Is there a way that the script can check to see if updates are needed and it not then just do nothing and the script can run successful.
My script is: