Yes. You simply need to create a TCL file with the commands I mentioned above.
database -open -vcd testpatterns.vcd
probe -all -depth all
Now, if you were running the simulator yourself from the command line, you would use an option like "-input myfile.tcl" to tell the simulator to read and execute that script file.
I'm afraid that I don't know how Spectre interacts with the simulator, but I imagine there is a field or option that you can set that would pass that TCL script to the simulator. You'll have to get info about that from the docs or someone else who knows Spectre.