What version of PowerShell is being run on your servers? The current version is 7.5.1. I was doing the Simple Cipher exercise, and was I using the Get-SecureRandom
function. This was passing locally, but when I submitted the exercise, it failed with this error:
Message: CommandNotFoundException: The term
'Get-SecureRandom' is not recognized as a name of a cmdlet,
function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
It looks like that function was added in PowerShell 7.4.