SQL Server Management Studio can help take the guesswork out of creating connection strings for PowerShell applications.
Below is a cheat sheet for creating SQL Server client connection strings and finding them in common configuration files. Connecting to instances by name, forcing a named pipes connection.