PowerShell Pro Tools exposes bundling and packaging as an MSBuild task and PowerShell project system property page.
You can configure bundling and packaging by changing the options available in the Advanced tab of the PowerShell project system. The entry point selects the top level script to bundle. Bundle specifies whether to combine dot sourced scripts into a merged script. If you select bundling without packaging an single PS1 file will be output to the $(OutDir). If you select packaging, an executable wrapping the script will be output to the $(OutDir). The output pane will contain all information about the bundling and packaging process.
The .NET Core SDK is required for packaging.