この例では、Perl スクリプト言語を使用して XPE を開き、テキスト形式の消費電力レポートへ結果をエクスポートします。
use Win32::OLE;
use Win32::OLE::Const 'Microsoft Excel';
my $myXPEfilename = "C:\\Power\\7_Series_XPE_13_1.xls";
# Opening XPE
my $Excel = Win32::OLE->GetActiveObject('Excel.Application')
|| Win32::OLE->new('Excel.Application', 'Quit');
my $Book = $Excel->Workbooks->Open($myXPEfilename);
# Export XPE results into a text power report
$Excel->Run("ThisWorkBook.GeneratePowerReportFile", "$path/${design}.pwr");