That's pretty simple. Here;s a good powershell book https://www.amazon.com/Learn-Windows-PowerShell-Month-Lunches/dp/1617291080
# Powershell example
# Following is a sample custom inventory script gathering information about processor of a machine and posting data
# to NS using Altiris NSE Component
# Create instance of Altiris NSE component
# Please don't modify this GUID -->
$nse = New-Object -com Altiris.AeXNSEvent
$nse.To = "{1592B913-72F3-4C36-91D2-D4EDA21D2F96}"
$nse.Priority = 1
#<--
# Modify this varaible with the custom data class guid
$objDCInstance = $nse.AddDataClass("{e8220123-4987-4b5e-bc39-ec6eaea312ef}")
$objDataClass = $nse.AddDataBlock($objDCInstance)
#Gather Processor Information
$procDataSet = Get-ChildItem c:\ -Name
ForEach( $proc in $procDataSet)
{
#Add new row of data
$objDataRow = $objDataClass.AddRow()
$objDataRow.SetField(0, $proc.Foldername )
}
#Send the data
$nse.SendQueued()