Script from MS help needed

I have 2 scripts from MS that are used to:

  1. first script runs great and shows all locally published updates that are in my WSUS.
  2. the second script is used to delete these locall published updates, but i am unsure of where to “input” the update ID that was generated by the first script to be deleted by the second script.

both scripts are located in the MS article

Any help would be GREATLY appreciated. Thanks!

it looks like the category ID is provided in the output of the first script, and the second script prompts you for a category id. Just copy and the desired id from the output of the first script and paste it in after you execute the second script.