The public preview of OpenAI and its ChatGPT is fascinating and after trying the web-interface, i wanted to do this via the commandline in PowerShell.
See my PSCHatGPT repo on GitHub, you will find example code and a readme to make it work for you. The sample video will give you a first insight on how the future of lerning and using PowerShell may look like.
As a heads up, its amazing, but needs experience and tuning! Have fun watching the short video.
There are more API features like image creation/editing and others, see the API documentation for infos.
Happy testing with your new scary friend ChatGPT with your good old friend PowerShell !
Roman