Got commands working, something is wrong with the command being passed to scanstate/loadstate though.
I think I got execution working. Need to publish and run as administrator to verify scanstate works.