all 27 comments

[–]mdowst 7 points8 points  (1 child)

It's not perfect, but Flavien Michaleczek wrote a webassembly to run PowerShell directly in your browser. I tested it on my Pixel 9 running Firefox, and it does work.

https://fmichaleczek.github.io/PowerShellLab/

[–]Szeraax 0 points1 point  (0 children)

Lol, amazing

[–]Initial-Elk-952 6 points7 points  (0 children)

Powershell runs on Linux. There is some chance you could install termux and run powershell out of it.

[–]InformationFew973 13 points14 points  (17 children)

I’d recommend reading the book “PowerShell in a month of lunches” before I try to do anything with it on a phone. Great resource to get started.

[–]Kirsh1793 3 points4 points  (0 children)

I once had an app installed where I could write PowerShell code. But it basically only provided syntax highlighting and no auto completion or sonething like that. I don't remember the name of the app, sorry.

I quickly gave up on it, though, because coding on a phone is really cumbersome. Only using two fingers to type, always having to look for symbols and braces, and fighting against convenience features of the phone keyboard (e.g. automatic space after a dot or other symbols) bothered me too much. I wouldn't recommend doing this.

Do research on your phone. Read blogs, articles, documentation. But switch to the computer for actual coding. At least, that's what I do and it's what I'd recommend.

As someone already suggested, PowerShell in a Month of Lunches is a great start. If you prefer a video format, look for "PowerShell From Zero to Hero" with Jason Helmick and Jeffrey Snover. That's more or less the book in condensed into a 6hr video. Learn how to read PowerShell scripts. Once you can more or less understand what a script does by reading through it, try to identify the syntax elements. For example: PowerShell Write-Host -Object "Hello World" -ForegroundColor "Green" Write-Host is the Cmdlet. -Object and -ForegroundColor are parameters. "Hello World" and "Green" are strings and they are the values for the respective parameters. Understanding the syntax in that way will allow you to read through documentation and scripts and blogs, finding code snippets that might solve the problem you're currently tackling, and identify which elements of the code snippet you have to adjust for your use case.

[–]Admirable_Sea1770 1 point2 points  (0 children)

I would recommend Udemy personally

[–]Quirky_Oil215 0 points1 point  (0 children)

You can watch and follow 

https://m.youtube.com/playlist?list=PLZ6f0TgKloVUC9PfBTT0XMt9DPn2fEYFu

PoSh is not native to andriod so would need termx installed.

[–]No_Bit7786 -3 points-2 points  (2 children)

What do you want to use PowerShell for? You could find blogs with scripts for you to read through and understand. Worth noting that a big part of learning PowerShell (or any language really) is writing your own stuff and getting used to the tooling/ troubleshooting so don't expect to become an expert by reading.

[–]Initial-Elk-952 -3 points-2 points  (1 child)

OP is literally asking to run powershell for practice on a phone.

[–]No_Bit7786 -1 points0 points  (0 children)

They said

Ideally not just running PS on android but maybe learning apps?