First error: At line:1 char:61 + ... e=[datetime]"30/09/2024 12:00:00";while($true){set-date $date; start- ... + ~~~~~ + CategoryInfo : InvalidData: (:) [Set-Date], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SetDateComm and Start-Sleep : A parameter cannot be found that matches parameter name 'ms'. Second error: At line:1 char:80 + ... 0/09/2024 12:00:00";while($true){set-date $date; start-sleep -ms 100} + ~~~ + CategoryInfo : InvalidArgument: (:) [Start-Sleep], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.StartSleepCommand Set-Date : Cannot bind argument to parameter 'Date' because it is null.