What you're looking for is HTA files "HTML Application". The feature is built into WinPE and lets you script similar to vbscript a menu system much like a HTML file that can autostart with your WinPE disk and let you do just about anything you can imagine.
I've made one that:
logged you into AD
launch batch files
formatted hard drives
copy drivers file and edit ini files on drive
pulled user data off drive
let you choose the OS (.wim) to imagex to the drive
To get HTA files to work on WinPE you need to add it to your WinPE image, similar to this:
peimg /install=HTA c:\winpe_x86\mount\Windows
HTA is frustrating to code as it's not a common scripting language and not well documented but it works. Our solution was pure Windows Deployment Toolkit and WinPE 2.0 based for over dozens of different hardware setups to over 3000 computers all done via DVD or USB stick.
Google "winpe script hta" for all the help you need.