Help to create script from these command below

Hi everyone , i need to create a powershell script from these command below in order to secure dell laptop bios with password on windows startup .


#Enable  powershell script

Set-ExecutionPolicy RemoteSigned

#Installer le module Dell Powershell dans powershell

Install-Module -Name DellBIOSProvider -RequiredVersion 2.6.0

#Import Dell bios powshell module

Import-Module DellBIOSProvider

#set bios Admin & System password

    Set-Item -Path DellSmbios:\Security\AdminPassword "SaycurIt2023"
    Set-Item -Path DellSmbios:\Security\SystemPassword "SaycurIt2023" -Password "SaycurItBios"

#Enable bios strong passworrd on computer startup

Set-Item -Path DellSmbios:\Security\StrongPassword "Enabled" -Password "SaycurItBios"


#Enable bios password on computer startup 

#Set-Item -Path DellSmbios:\Security\PasswordBypass "Disabled" -Password "AdminPwd"

stankus,
Welcome to the forum. :wave:t4:

What kind of help do you need? You may elaborate a little more detailed.

and BTW: When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in PowerShell.org <---- Click :point_up_2:t4: :wink: