I recently replaced a bit of code to look up locked files for a file share with SMB cmdlets to do the same.
The performance difference was night and day.
The biggest issue with PowerShell is that PowerShell Core is not yet default on Windows 10/11 and Windows Server. That should be Microsofts highest priority for PowerShell.