Hi, @Boopathi Subramaniam
Thank you for posting in Microsoft Q&A forum.
When you open the PowerShell ISE from the console, did you see the script like below? We should run this script first to import the ConfigurationManager.psd1 module and set the current location to be the site code.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.