@Balasubramanian S , thank you for the clarification.
Since you're using an On-Prem File Share and are trying to automate the close/delete tasks for .LDB files, I'm assuming this is going to be completed through Windows PowerShell and not Azure PowerShell.
If you're trying to automate these tasks using Windows PowerShell, you should post your question at our Microsoft PowerShell Community. However, If you're trying to use Azure PowerShell for an On-Prem File Share, we don't have any Az commands that would be able to accomplish the close/delete tasks for .LDB files.
----------
Please let us know if any reply/answer helped resolve your question. If so, please remember to "mark as answer" so that others in the community facing similar issues can easily find a solution.