Splitting the PowerShell PSModulePath Cross-Platform
The $env:PSModulePath environment variable contains a list of directory locations that PowerShell searches to locate modules. $env:PSModulePath When you’re trying to determine what paths are part of the $env:PSModulePath environment variable in PowerShell, you’ll find that most examples split the results on the semicolon (;) character to return each path on a separate line. $env:PSModulePath -split ';' Another variation is to use the Split method instead of the operator. $env:PSModulePath.Split(';') Splitting on a semicolon was a great solution back in the day of Windows (only) PowerShell....