https://blog.netwrix.com/2018/02/21/windows-powershell-scripting-tutorial-for-beginners/
PowerShell has a command-line option and a scripting environment in x64 and x86 flavors. It can be launched by searching for Powershell in the Windows Start menu, or by running powershell.exe at a Run prompt (or powershell_ise for the scripting environment).
Running PowerShell Scripts
PowerShell scripts cannot run natively - you must right click on the script and choose "Run with PowerShell." Scripts can also be scheduled using task scheduler:
https://blog.netwrix.com/2018/07/03/how-to-automate-powershell-scripts-with-task-scheduler/