Looks like the Register-ScheduledJob creates scheduled tasks which run in the background (and has no option to specify otherwise.) You’ll have to modify the scheduled task after Register-ScheduledJob is finished:
This changes the task’s options to “Run only when user is logged on”, causing whatever programs it runs to show up on your interactive desktop.
Edit: On a side note, the ScheduledTasks module is only avaialble in Windows 8 and later (which you have.) If you wanted this to work on older operating systems, you’d have to find a different way to modify the task. schtasks.exe /change /IT can do it, but unfortunately requires you to provide a password for the task as well. There may be other methods using WMI or the Win32 API, but I haven’t looked into that since you mentioned Windows 8.1 anyway.
I added the two lines you mentioned to make it a non-background task and made sure it was scheduled properly.
At 9:30a as scheduled, a window appeared - then abruptly closed before it had a chance to load the site even… It was just kind of a dark blue window - probably a browser as specified in the script.
Any other ideas for how to make the window persist long enough for me to interact with it and close it on my own?
I saw basically the same thing when I tested that code. The dark window you mentioned is the PowerShell console, but it doesn’t have to stay open very long, because all it’s doing is loading up your scheduled job scriptblock and invoking it. I’m not sure if it would be any help to try to leave that PowerShell window open, as it is just being launched with these parameters:
Those two things are tied together. If powershell.exe launches in the background, so does IE.
I’m not sure why the browser isn’t opening for you; that part worked fine for me. I tested the code before I posted it here. The only thing I changed was URL to http://www.google.com