concept script execution in category powershell

appears as: script execution
PowerShell in Depth, Second Edition

This is an excerpt from Manning's book PowerShell in Depth, Second Edition.

Note that some modules are script modules, meaning they can load only if you’ve enabled execution of scripts. If you try to load one on a default PowerShell configuration where scripting isn’t enabled, you’ll get an error message. You’ll need to enable script execution, which we cover in chapter 17, or you can read the help for the Set-ExecutionPolicy command to learn how to load such a module.

Script execution extends to other scripts as well such as batch files or VBScript. If you had a script in the current directory called Dir.bat, you’d ensure it too wouldn’t be executed simply by typing DIR.bat.