# Pause Invoke-RestMethod -Method Put -Uri 'https://api.spotify.com/v1/me/player/pause' -Headers @ Authorization = "Bearer $accessToken"
$response = Invoke-RestMethod -Method Post -Uri 'https://accounts.spotify.com/api/token' -Body $body $accessToken = $response.access_token $refreshToken = $response.refresh_token spotify premium pc powershell
You need the base client. Download Spotify from the official website (not the Microsoft Store, as Store apps have strict permissions). The Win32 version is easier for PowerShell patchers. # Pause Invoke-RestMethod -Method Put -Uri 'https://api