Send this package to a Windows machine to run a command(line) or script as local admin. Command line: max characters 254 can be given in ePO.
When the command starts with smb path and ends in .ps1 is will then run it as a local script. "\server\scripts\myScript.ps1" This script can be hosted on the evidence share for example. You can also create a new share where domain computers have access to.
Run this to build the package for ePO.
Based on the work from Steen Pedersen https://github.com/SteenPedersen/EEDK_PowerShell_template
Example of a PowerShell template script which can be deployed and provide feedback to ePO using Custom Props.
Make sure to place both the .CMD and .PS1 in an empty folder and use the EEDK to select that folder. This will create an ePO package with both script files included.