Complie powershell script in C#

Hi, i've just recently learned powershell scripting as an alternative to batch scripting, for obvious reasons.  With a batch file, you can just give it to your friends without having to install anything on their system.  I was wondering if there's a way I could compile - i've heard some people saying it is possible - the powershell script into an executable so that my scripts would be portable to friends without having to have anything extra installed.

Thanks.
NitinolAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BSonPoshCommented:
You can NOT compile Powershell scripts. If you want to share a Powershell script the machine that runs the script will have to have Powershell.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NitinolAuthor Commented:
*sighs* That's too bad.  I like to share my stuff with my friends.  They're too lazy to install powershell, haha.
0
BSonPoshCommented:
I understand... good news is that it will be included in all MS OS's from now on.
0
NitinolAuthor Commented:
nice, now that's something worth looking forward to
0
NitinolAuthor Commented:
Good as usual
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.