On Codeplex user redpark asked for “Single Thread Apartment” mode (http://ps2exe.codeplex.com/discussions/435946)…
Here it is…
Please see v0.4 on CodePlex:
There are 3 new parameters:
|-sta||Single Thread Apartment mode|
|-mta||Multithread Apartment mode|
|-noconsole||resulting EXE is an Windows application not a console application.|
The –noconsole parameter lets you create a Windows application EXE file with no console window.
Therefore I would need to implement several extensions for the PowerShell host included in the resulting EXE but currently I have not enough time to do this. But for now I’ve implemented the credential prompt so cmdlet Get-Credential will work as expected.