IIS 7 and Above
IIS powershell performance
Re: IIS powershell performance
Jul 25, 2019 03:29 AM|Jalpa Panchal|LINK
This issue occurs because the New-WebApplication and ConvertTo-WebApplication cmdlets generate a high volume of COM calls.
To work around this behavior, run PowerShell by using the -mta switch:
Another workaround, run PowerShell by using the -version 2 switch:
Powershell.exe -version 2
Could you share which operating system you are using?