Score:0

How to run a powershell script to generate exe in ubuntu with ps2exe package

co flag

How to make powershell script to generate exe in ubuntu with ps2exe package.

My script is working fine in Windows OS but the same script not working in Ubuntu. I need to run this script in Ubuntu because I have only one AWS cloud server which is working on Ubuntu OS. I have installed Powershell with the ps2exe extension in Ubuntu. but it not working fine. I have no idea how to solve the following error and Is it possible to generate an exe file from a PowerShell script with ps2exe in Ubuntu ?

/home/mypc/.local/share/powershell/Modules/ps2exe/1.0.12/ps2exe.ps1:2762
Line |
2762 |      $cr = $cop.CompileAssemblyFromSource($cp, $programFrame)
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "CompileAssemblyFromSource" with "2" argument(s): "Operation is not supported on this platform."
Invoke-ps2exe: Output file /var/www/html/script/home/remote/aithentic-agent-win-installer.exe not written

Thanks

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.