The script way is straight-forward: the cmdlets are run one after the other and the aliases are created in the system just like how you created them manually.
With the CSV import, PowerShell parses the input into the Name–Value pairs (and add other parameters based on what you exported) and add them to its alias reference for the current process.