Building Actions using Script

Can I use building actions within a script?
Example:

union(part, part)