Execute scripts from PatternRefer to How to run powershell script in patterns for an update on executing Powershell scripts in Pattern Executing any scripts from the pattern is explained here: Transfer a file in the Patterns Create a script. Test it to be working. The script can get arguments.Upload the script to MID servers using the UI in: Pattern Designer ➔ Uploaded Files. Take a note of the directory this file was uploaded to.Use a Put File step in a pattern - this will make sure to copy the script from the MID server to the remote target. The return value of this operation is the full path of the scriptUse the return value from step 4 to run the script locally on a target - add arguments per your script. If you do not see the uploaded file, try to do the following as well (might not be needed after following the documentation): Go to MIDScript Files and edit the file "DiscoveryUtilityFiles.properties":This is a key=value fileAdd a Logical name = relative path (from step 2). note that the relative path is <MID_Install>\bin\sw_wmi\bin