various powershell tomfoolery