WSL2: Launch powershell command from emacs

Juan Pablo Morales 21 Reputation points


My IDE/text editor is emacs. I installed wsl2 and followed this repo to set up emacs on wsl.

I am working on an automation pipeline, so the code must be executed from powershell (access to windows programs, pyautogui etc.).

I still do my editing from emacs, so my files are in wsl filesystem. I know I can access them from windows, and could manually open a powershell and execute the script using the correspending wsl path.

My question is: can I use powershell directly from emacs? Emacswiki link seem obsolete (powershell.el is from 2010) and couldn't find any trivial way to launch my automation load directly from emacs.

Any tips are very welcomed.


Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,921 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous

    WSL2 is not currently supported here on QnA. They're actively answering questions in dedicated forums here.

    and PowerShell forums located here.

    --please don't forget to Accept as answer if the reply is helpful--

    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments

0 additional answers

Sort by: Most helpful