How to create and run a PowerShell script file on Windows 10
In this guide, we'll show you the steps you need to follow to create and successfully run your first PowerShell script file on Windows 10.
Click The Trust Workspace Command Prompt Visual Studio Code Powershell Integrated Scripting Environment Visual Studio Studio Code
Source: windowscentral.com