I'm writing a script that should apply a site design to a site (large site design).
I can queue the task, but I didn't found a way to wait for the effective completion.
How to do that ?
I use either PnP PowerShell or SPO module, but none seems to provide a wait command.
I trigger the sitedesign using
$designTask = Add-PnPSiteDesignTask -SiteDesignId 4d95f2a0-b7fa-4102-a4d4-c4a3566f2fd1