Hi,
Use bash script if you want. [0]
Or if you use Windows environment and know a little C++ or C# you could make an simple program to start SPICE ;)
Also you can see here if you want use API is super handy [1]
[0] https://github.com/Blub/pve-manager/blob/master/spice-example-sh
[1]...