To populate $scriptPath, look at the script name which is in $0. Grab the path part off that.
Or, being Windows, use the Registry either for the data itself or a single entry pointing to the INI file. Hard-code the registry path as HKCU\Software\YourBrand\YourScript.
—John
Comment on Re: Script Directory vs. Directory Script was Called From