PowerShell: Load a Script
Dot sourcing operator .
to load a PowerShell script, do
. scriptPath
if scriptPath is a file name in current dir, you need to put ./
in front.
e.g.
. ./myscript.ps1
PowerShell: Profile and Script
- PowerShell: Open File by Default App
- PowerShell: Launch App, Start Process
- PowerShell: Load a Script
- PowerShell: Eval Variable, String, ScriptBlock
- PowerShell: Profile (init file)
- PowerShell: Manage PowerShell Profiles
- PowerShell: Create a Script
- PowerShell: File Name Extension
- PowerShell: Get Current Script Path