AI on the Command Line: PowerShell Across Platforms

I stumbled upon something interesting recently—apparently, Microsoft Paint now has AI capabilities (thanks to DALL-E 3). It’s particularly exciting for IT pros, and definitely worth a blog post: check out the ChatGPT module that integrates with PowerShell. Not only can you chat with it, but it can also do some pretty impressive tasks, such as:

  • Collaborating on multi-step complex instructions:
    ai "list of planets only names as json" | ai 'convert to xml' | ai 'convert to powershell'
  • Providing structured responses:
    ai "list of planets only names as json"
  • Interpreting the latest error message:
    Invoke-AIErrorHelper

… and it can even create an Excel file. For more videos, check out the link above:

PowerShell AI - copilot at the command line

Another similar solution is OpenInterpreter. The advantage here is that it’s an open-source language model that can run entirely locally!