: By default, Windows may block scripts for security. To allow them, open PowerShell as an Administrator and run: Set-ExecutionPolicy RemoteSigned
: Navigate to your folder in PowerShell and type: .\script.ps1 script.ps1
This piece of code clears the console, says hello, and lists the top 5 most memory-intensive processes currently running. powershell : By default, Windows may block scripts for security
For more advanced automation, you can find over 600 free scripts on the PowerShell GitHub repository or follow official guides at Microsoft Learn . How to write and run your first PowerShell script - PDQ : By default