it's doable but probably not the best way to go about it via PVE snippets.
if you have qemu guest agent installed then you could execute shell commands through that [0] with qm guest exec <VMID> -- <yourcommand>
you could call that with a snippet.
but there are many other ways of doing this using windows-specific methods. you can have a powershell script like this: