using powershell to configure windows settings

hello experts,
just wanna check with you if it's possible to use powershell to configure control panel options and what is the best way to do it. after installing windows, i always go into control panel and configure windows in a particular way such as changing monitor timeout and sleep timeout under power options, changing mouse options, ect. what would be the best way to accomplish this. is it done in the registry only, or is it done through some sort of object instance?
also i would like to use powershell to configure start menu and taskbar settings. ultimately what i want to do is - install windows, run powershell script to customize windows settings, done. this will save a ton of time everytime i have to install windows.