# Create the playlist $playlist = New-SpotifyPlaylist -Name $playlistName -Description $playlistDescription -ClientId $clientId -ClientSecret $clientSecret
If you have multiple playback devices connected to your PC, you might want to switch between them programmatically. This script uses the Spotify Web API and PowerShell to switch between playback devices.
# Set your Spotify credentials $clientId = "your_client_id" $clientSecret = "your_client_secret"