The PowerShell SQL Client module aims to replace to the SQL Server utilities SQLCMD and BCP
Disconnect-TSqlInstance [[-Connection] <SqlConnection>] [<CommonParameters>]
PS C:\>
Type: SqlConnection
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.