you should be aware that Windows is not configured to allow the execution of unsigned scripts because they can be used to damage the system. • To configure your execution policy so that you can run scripts you have written, you can use the command set-executionpolicy. • To execute your command without warning or restriction use -Force
sequences of calls to cmdlets, and these files have the extension .ps1. • Unlike working in the console, each operation does not have to be typed in and executed immediately. • A script module is essentially any valid PowerShell script saved in a .psm1 extension. • You can use the module cmdlets, such as Import-Module MyModule
needs to accept some kind of input. • You can tell Windows PowerShell to expect these parameters, collect them from the command line, and put their values into variables within your script or function. • Full-fledged syntax lets you define parameters as mandatory, specify a position and more. ([Parameter(Mandatory=$True)])