Environment details: Sitecore 10 Azure PAAS hosting
I am trying to automate a few things in an already running Sitecore set-up. For that, I wanted to utilize Sitecore Powershell remoting.
I have gone through different blogs and videos. Still, I have a few questions:
Almost all sample scripts start with
Import-Module -Name SPEsuch as here. So, from wherever this script has to be executed, the SPE module should be accessible. So, I can conclude that this script will be present in Sitecore. Is my understanding correct?
But then why do we need to provide the Connection URI, as mentioned here, if the script is being executed on the Sitecore instance?
If the script is being executed outside, how Sitecore is identifying the methods being exposed, as shown in the video
It would be of great help if the community can help me to understand how things work under the hood