Reboot with PowerShell: Use Restart-Computer to restart locally, remotely, and automate reboots for multiple Windows computers
Registry Redirection: Why You Should Never Hardcode Wow6432Node and How to Properly Access Registry Views in PowerShell