Is there a way to "invoke-command" to a remote computer such that I can reboot my computer and the job will still be running, and I can check the output log whenever I want?
PS> invoke-command -Computer Remote1 -File "ScriptThatRunsFor7days.ps1"
PS> restart-computer
PS> # Hey where's my job on remote computer? Can i see it running and connect to
# its output after rebooting my computer?
Something with scheduled jobs. I'm copying the script to the remote computer using a pssession.
And then later, only when it starts running, it will automatically appear as a regular job on the remote computer: