Modifying the spawner

Hello, i am trying to spawn some pokemon in a mod there is this command called "/pokespawn" this lets you spawn a specific pokemon that you state the name of after "/pokespawn" an example of this would be "/pokespawn abomasnow" is there a way to implement this inside a spawnerblock so it chooses where the pokemon would be spawned?

Continue to help post