Hello,
I have a PowerShell 7.4 script saved locally that I need to run with parameters. when I type command.
PS C:\Users\Me>. \Graph_SPO_shared_files1.ps1: File C:\Users\me\PS_Scripts\Graph_SPO_shared_files1.ps1 -Sites "https://MYTENANT.sharepoint.com/sites/DevelopmentTestSite"
I get the error:
.: The term '\Graph_SPO_shared_files1.ps1:' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I can confirm the path is correct.
Anyone know why I am receiving this error?
Any help would be appreciated
DKADM