The idea behind this is to install a Linux OS into your mobile and install powershell into the OS.

Step 1 – Install and Run Userland.
Step 2 – Choose Ubuntu (18.04) – Enter username and Passwords, choose SSH

Step 3 – You will eventually see this. Login using ssh password entered before.

Step 4 – Do update and upgrade. (Press Y to agree to upgrade)sudo apt-get update && sudo apt-get dist-upgrade
Setp 5 – Install wgetsudo apt-get install wget
Step 6 – Create a foldermkdir ps
cd ps
Step 7 – Download latest release from https://github.com/PowerShell/PowerShell/releases/,
be sure to choose a powershell-xxx-linux-arm64.tar.gz.wget https://github.com/powershell/powershell/relases/download/download/v7.0.3/powershell-7.0.3-linux-arm64.tar.gz
Step 8 – extract the files from tar.gztar -xzvf powershell-7.0.3-linux-arm64.tar.gz
Step 9 – Additional tools needed for this.sudo apt-get install libunwind8 icu-devtools
Step 9 – type in ./pwsh in the /ps directory to run powershell.
Step 10 (optional) – Adding in PATH variable permanently.
Install file editor sudo apt-get install nano
Verify the PATH of pwsh directorysudo find / -name pwsh
Edit ~/.Profilesudo nano ~/.Profile
Add in PATH=$PATH:/home/username/ps at the bottom of the page
Save and Exit (Ctrl + X)
Type in pwsh to run powershell after this.
