Let ChatGPT run PowerShell on your Windows PC
Let ChatGPT or Claude run PowerShell and cmd commands on your own Windows PC: find files, check processes, clean up folders and run scripts, even from your phone.
By Sandeep Kumar Saini, founder of Shellway · Published 15 Nov 2026 · Updated 27 Nov 2026
Windows users often copy a PowerShell command from ChatGPT, paste it, copy the error back, and repeat. Shellway removes the copy-paste: the AI runs the command on your PC and reads the result itself.
Setup (about 2 minutes)
- Add Shellway to ChatGPT (guide) or Claude (guide).
- Open PowerShell on your PC and paste the setup command shown on your dashboard. No admin rights needed.
- The agent starts in the background and again when you log in, so you can close the window.
PowerShell and cmd both work
Commands written in PowerShell (for example Get-Process, Get-ChildItem, $env:USERPROFILE) run in PowerShell automatically; classic cmd commands keep running in cmd. Hindi and other non-English file names and output are shown correctly.
Example requests
- "Find all PDF files in my Downloads folder bigger than 50 MB."
- "Which programs start when Windows starts?"
- "Show the 10 processes using the most memory."
- "Move last month's screenshots from Desktop into a folder called Screenshots-October."
- "Run my backup script in D:\scripts and tell me if it finished without errors."
Use it while you are away
Keep the PC on and charging, and turn on keep-awake with npx shellway policy keep-awake on. Then you can ask from ChatGPT on your phone. See ChatGPT on your PC from your phone.
Can the AI run this command for me?
Yes. Instead of copying a command from the chat into PowerShell yourself, ask for the result in plain words: "Run ipconfig and tell me my IP address" or "Which programs start with Windows?" ChatGPT runs the command on your paired PC and reads the output back to you. Commands you blocked, or any command in read-only mode, are refused on the computer itself.
Safety
Start in read-only mode if you like, block commands you never want run, and limit the AI to chosen folders — these rules live on your PC. Every action is logged. Read the safety rules.