Hi,
Try adding this to your profile:
$input=Read-Host -Prompt 'Do you want to load the profile?'
if($input -eq 'Y'){
#contents of the profile
}
This cannot stop the profile from being loaded but it makes powershell load nothing from the profile if you don't type Y.
Best Regards,
Ian Xue
============================================
If the Answer 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.