I believe these cmd for S3/S4 can't work on all win guests. Which windows os did you test these config?
Better to filter the unsupported version.
Or rename the variants names to "guest_s3/s4" then you can use the predefined variants in guest-os.cfg.