IronmanPowerShellHost Should be updated to support Coalesce (and other more recent features).
Script development, that is worth (complicated enough) Promoting to an exe, uses such features.
We use (For example):
Coalesce
$Collection | ForEach-Object -Parallel $ScriptBlock -ThrottleLimit $ThrottleLimit
Product: PowerShell Universal
If you add PowerShell 7 to the system you can choose that as your host. I have my PowerShell 7 set to auto-update and PSU always picks up the updates without issues.
Packaging in all of Powershell bloats the executable to around 200 Megs!
The point is to have a smaller exe. Packaging in all of powershell means that the executable is not easy sent to someone else - which is one of the main points to building an exe.
Indeed, I would like to have a smaller EXE (use the IronmanPowerShellHost ) even when packaging other files - ala:
a .PSD1 that contains:
$Packages = (Get-ChildItem “C:\Files*” -include @(“File.txt”, “File2.txt”)).Name
…
Resources = [string]@($Packages)