Hi,
can you paste the script here?
Which System Center Orchestrator Version do you use? Before System Center 2019 Orchestrator "Run .Net Script" Activity ist started Powershell Version 2.0.
AD-cmdlets for example require a higher version (3).
You can set OnlyUseLatestClr:
HKLM\SOFTWARE\Wow6432Node\Microsoft.NETFramework
Reg_DWORD: OnlyUseLatestCLR
Value: 1
Some cmdlets require 64bit. Until Version 2019 "Run .Net Script" Activity runs in 32-bit. Try to invoke the script with powershell {your script}.
The cmdlets must be available on Orchestrator Runbook Server.
Regards,
Stefan