The question is clear.
After the restart the updates are being applied.
The GuestOperationsReady becomes $true, at that point you can use the code I posted to check if there are still updates that are not applied yet.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference