I have a PowerShell script that has gotten very big. To decrease load times, I would like to load only sections of the script that are currently being called.
Does dot sourcing a script still load it at runtime? Or does it wait until it hits that function before loading the other script?