Hello there,
I am not exactly sure about your query here. From your description, I can understand that you are trying to run a script and this might require a reboot and this is common for most of the updates within Windows. The reason for the reboot might be the execution policy.
PowerShell's execution policy is a safety feature that controls the conditions under which PowerShell loads configuration files and runs scripts. This feature helps prevent the execution of malicious scripts.
Execution policies for the local computer and current user are stored in the registry. You don't need to set execution policies in your PowerShell profile. The execution policy for a particular session is stored only in memory and is lost when the session is closed.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–