You can initialize just with operation id and after that do the following to add script lines:
var runCommandInput = new RunCommandInput("RunPowerShellScript"); runCommandInput.Script.Add("scriptLine")