Sure, you can use these in a script but you would have to use a GROUP BY clause in your LOAD statement (similar to, but different than sending a GROUP BY clause in an SQL statement.)
Example:
LOAD Customer, Sum(Sales), Count([No Order]) as controls RESIDENT Invoice GROUP BY Customer
If your source is a table file, SQL, etc. the syntax may be a little different. -Isaiah