130 votesJonathan Blaine commented
I frequently encounter issues when using PowerShell to interact with Excel - usually when taking a template, saving under a different name, then modifying the sheet. If I pause or shutdown the OneDrive client, I don't have these issues. I'm using onedrive.exe /shutdown and that seems to work - although recently (with the update to allow on-demand files) I've been getting messages that "Excel is trying to recover..." I don't experience these issues when I manually pause and resume, which would be preferable regardless. Note that I have both personal and OneDrive for Business instances running (not groove.exe), so a command line switch to pause or resume should (ideally) also allow specifying which instance should be paused/resumed.