Give Invoke-AzResourceAction powershell cmdlet a synchronous mode
Invoke-AzResourceAction, Powershell cmdlet, https://docs.microsoft.com/en-us/powershell/module/az.resources/invoke-azresourceaction?view=azps-2.8.0, currently runs asynchronously. It returns immediately but it is still working on the operation. The user must poll for a resource to be created and then check the provisioningstatus of that resource. The Azure CLI runs the comparative command synchronously, so it pauses until it is done. Could you at least create a parameter for Invoke-AzResourceAction so that it would run synchronously.
For PowerShell suggestions you can file them on the PowerShell GitHub public Repo