I have a few things like running SFC, defrag, and reset the page file and so on, things that can be done within windows VBScript, I am just wondering if I can compile that code as a resource and call it as needed. Thanks.
You can use the Windows Script Host interfaces,
Update: have a look at this blog article:
And then look at this discussion to make it work in 64bit: