I have good news!
After bringing this up with the dev team, they showed me that you can implement script modules for runbooks. The script module does not need to be pulled into the runbook if it is already pulled into the process for the project.
See example below:
“Say-Hello” script module
When defining a step in the runbook, there is a line that says “Script modules included in the project with be automatically imported”. Notice the “Say-Hello” function.
Upon saving that step, the script module does, in fact, pull in automatically and shows up on the process overview for the runbook.
Task log from a completed test run from the “Say-Hello” runbook.
I’m really glad that this option is available and our dev team was willing to share their “secrets”.
Let me know if you have any more questions about this or anything else.