...
A new script library object type, Data, has been introduced to allow script library objects to be referenced as data files by commands and from within Scripts and Universal Tasks. For example, this new feature allows powershell scripts to be stored in the Universal Controller database and used as input to Windows tasks executing the powershell command. A new _scriptdatascriptPath
function is used to reference the script data object within the desired command, script, or Universal Task.
Assuming that a Script Data object called myscript.ps1
is created and contains a valid powershell script it then can be executed in a windows task command as follows:
powershell -F "${_scriptdatascriptPath('myscript.ps1')}"
In this case, the myscript.ps1
script object is copied to the file system on the agent server and referenced as an input file to the command that is executed on the agent server.
...