Further to this, the suggested solution wouldn't work for us as not all of our machines will be online all the time when our patching policy runs.
As discussed here,
the automation tasks do not allow for running a task next time the machine is online as the patch policy does.
Additionally, the pulseway patching reports do not capture any information about patches that are installed via scripts.