views:

616

answers:

3

Do PowerShell scripts run under Mono? I would like to run them on a Mac.

+9  A: 

There is an open source version of PowerShell called Pash designed for Mono. It is not complete, but may be able to do what you need:

http://pash.sourceforge.net/

jpobst
Very probably not. Pash is unfortunately (a) very incomplete and (b) hasn't seen any activity for about a year.
Joey
One of the the ubuntu pash team has just been accepted to do a GSOC on it.
Bob Blanchett
A: 

Does the PowerShell program run under Mono on a Mac? If not, is there some other program that can run PowerShell scripts? If no to both, then the answer is no.

John Saunders
+2  A: 

The powershell.exe stub is actually a native win32 program, not a managed assembly. It may be possible in the future to host the System.Management.Automation assembly in Mono, but I'm fairly sure it doesn't work at the moment.

-Oisin

x0n