So if I understand you correctly the standard named parameter syntax of powershell is not used here.
Rather it’s just the args.
So I need to either rewrite my PowerShell script so it’s accepting args and can be called like:
script.ps1 arg1 arg2 arg3
With this I could use it inside then as arg[i].
e.g. as described here
Or I just use a wrapper script to call the actual one?
Is this what you mean?
Is $result variable also accessible after the renewing of the cert was ok but the deployment task failed?
Or can I access the $result variable afterwards?