You can always run a Scan-Inventory from the script.
That way it will always produce a result, even if there was no scan done before your script runs.
You can always run a Scan-Inventory from the script.
That way it will always produce a result, even if there was no scan done before your script runs.