I am new to powershell. I want to deploy CI/CD pipelines in Azure DevOps for Azure Data Factory. I am following this pre and post deployment powershell script documentation. The pre deployment stop trigger runs smoothly, however, I am facing error in the post deployment restart trigger part. I am getting this error
2022-10-20T12:13:56.6253765Z ConvertFrom-Json : A parameter cannot be found that matches parameter name 'Depth'.
2022-10-20T12:13:56.6255217Z At D:\a\r1\a\_masterBranch_source\triggerRestarter.ps1:659 char:26
2022-10-20T12:13:56.6256045Z + } | ConvertFrom-Json -Depth 10
2022-10-20T12:13:56.6257011Z + ~~~~~~
2022-10-20T12:13:56.6257821Z + CategoryInfo : InvalidArgument: (:) [ConvertFrom-Json], ParameterBindingException
2022-10-20T12:13:56.6258767Z + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.ConvertFromJsonCommand
This is my powershell script.