If using the command line, you'll need to use one of the packages listed with
sdkmanager --list | grep "playstore"
Once that is installed you can use the appropriate package in
avdmanager create avd --force --name testAVD --abi google_apis_playstore/x86_64 --package "system-images;android-28;google_apis_playstore;x86_64" -d 19
Replace google_apis_playstore;x86_64
with the package you installed