script power shell code example
Example 1: how to run power shell script
powershell -Command D:\SRINIVAS_WORKS\POWERSHELL\testPsScript.ps1 --> to run on same terinal
powershell -NoExit -Command & D:\SRINIVAS_WORKS\POWERSHELL\testPsScript.ps1
Example 2: power shell
PowerShell is a tool for automating tasks and simplifying
configuration in the WINDOWS ecosystem.
PowerShell is more complicated, but much more powerful,
than the traditional CMD.