PowerShell: Load a Script

By Xah Lee. Date: . Last updated: .

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