Wouldn't it be great if your scripts had a "read-only " mode that would allow you to test them without actually implementing changes? PowerShell call this "-whatif". Jeffrey Snover's Supporting -Whatif, -Confirm, -Verbose – In SCRIPTS! blog post tells you how to do this in your scripts.
Check it out and follow Jeff's advice "Use this often – it works great."