You can use the function DoPF to simulate a power flow case. The options available in this function are the same as those in the Solve | Power Flow command in Power Flow. After a simulation in the Power Flow Program, you can copy the voltage and current results into PowerScript program variables for generating report and for further processing.
The functions GetPFVoltage and GetPFCurrent retrieves solution voltage and current at terminals of the given network device. The function GetFlow calculates the power flow.
DoPF Simulates a power flow.
GetFlow Gets the MW+jMVAR flow for a load, generator, shunt or branch.
GetPFCurrent Gets the current flow for a load, generator, shunt or branch.
GetPFVoltage Gets the voltage at a bus or at the end buses of a branch.