Previously working PowerShell script recently broke. Interesting thing is it still works when running PowerShell 5 desktop and was previously working with PowerShell 7 v7.x.x core until recently. Tried updating to WinSCP v5.21.6 but it didn't help.
"C:\program files\powershell\7\pwsh.exe" -noprofile -windowstyle hidden -executionpolicy bypass -file C:\Users\**********************\Documents\CleverExport-Debug.ps1
Throws the error:
Too many parameters for command 'open'.
Yes, I've reviewed the other posts relating to this same error but couldn't find anything specific to why PS7 core would break all of the sudden. It could be related to a MSFT update but that's just a blind guess.