@MGCH - Thanks for reaching out.
The Az PowerShell module is for working with Azure Resource Manager. The Azure PowerShell module is for working with Azure Service Management (Classic deployment mode). Commands from both modules can coexist in the same script.
So there is no way of using Az PowerShell commands in this scenario.
Hope this helps.
Please "Accept as Answer" and "Upvote" the same if the response helped, so it can be beneficial to the community.