Posted On: Feb 22, 2018
To run a script in the PowerShell, go to the directory where your script is stored on your PowerShell command. Then, run the script by typing the following command.
PS C:\script_folder> ./Script.ps1
Here, script_folder is the path of the folder where your script is stored, and Script.ps1 is the name of your script.
PS C:\script_folder> .\Script.ps1
Alternatively, you can use the above command to run the script.
Never Miss an Articles from us.