run exe powershell code example
Example 1: cmd run powershell command
powershell -ExecutionPolicy Bypass -Command "your script here"
Example 2: run powershell script from wsl bash
powershell.exe -File "c:\users\ray\Desktop\restorescreenres.ps1"
powershell -ExecutionPolicy Bypass -Command "your script here"
powershell.exe -File "c:\users\ray\Desktop\restorescreenres.ps1"