By the way, I got errors today which seem to indicate more like an environment corruption. Never mind just a NULL object slipping through - it loses access to (what I presume are) built-in functions like "write-host" and IsLoaded
Error 1:Write-Host : The term 'Write-Host' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\NemosMiner\NemosMiner.ps1:337 char:25
+ Write-Host "Running:"
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Write-Host:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
You cannot call a method on a null-valued expression.
At C:\NemosMiner\NemosMiner.ps1:381 char:13
+ $TimerUI.Start()
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (
[], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Error 2:IsLoaded : The term 'IsLoaded' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\NemosMiner\NemosMiner.ps1:1519 char:19
+ if (!(IsLoaded(".\Core.ps1"))) {. .\Core.ps1; RegisterLoa ...
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IsLoaded:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException