On Windows 11, you can use these steps to create and successfully run your first PowerShell script file.