Fix improper use of $Error[0]
Update Get-TimedScreenshot.ps1

Fix error handling and various style problems
Merge pull request #9 from obscuresec/master

Bug fix for error handling