Then, you can save those lines in a file and run it with a click or schedule it to run periodically.
It’s a way of writing a few lines of commands, called a script, to make the Windows operating system do something that you want it to do. It really reads a lot like regular English, which was something Microsoft strove for so that it could be picked up by non-programmers. PowerShell is like a programming language, but not as cryptic as most.