You can import scripts written outside of Configuration Management into Configuration Management to be used in tasks.
To import a custom script for use in a Configuration Management task:
The Import Configuration Scripts dialog displays.
To export a custom task script:
Note: Configuration Management default scripts cannot be exported.