Should param($result) work with Lets Encrypt Staging Mode


I am trying to test my script and am using the Lets Encrypt Staging Mode but it fails with:

2020-07-04 15:58:51.642 +01:00 [ERR] param: The term 'param' is not recognized as the name of a cmdlet, function, script file, or operable program.
At D:\SSLScripts\Test.ps1:4 char:1
+ param($result)

Is param($result) also meant to work with the Staging Mode for testing as well as Production? Testing the script in Production param($result) worked but I hit a different error and then my limit! hence wanting to test in Staging.



Hi, in Powershell when you are using param it needs to be the first line of your script and can only appear once.

Yes, scripts will work regardless of the type of ACME accounts you are using.

Thanks for quick response, That was it, not the first line. Rob

1 Like