How do I create a PowerShell script file?

On Windows 10, you can create PowerShell script files using virtually any text editor or the ISE console. However, the preferred option (thanks @jotaka for the heads up) to build scripts moving forward is to use the Visual Studio Code editor with the PowerShell extension. Creating script with Visual Studio Code
For More Information Please Refer:

You May Also Like to Read: