Re: Solved it for me
@Cbeach: Thanks for sharing your findings. Then it was likely indeed the
https://learn.microsoft.com/en-us/dotnet/api/system.datetime.ticks
So
It's better to use
Session.Timeout that solved your problems. The 1000000000 is not that "small". The Session.Timeout is TimeSpan. When converting numeric literals to TimeStamp, PowerShell interprets them as "Ticks", what is "one ten-millionth of a second":
https://learn.microsoft.com/en-us/dotnet/api/system.datetime.ticks
So
1000000000 is "only" 100 seconds.
It's better to use
Session.TimeoutInMilliseconds property or New-TimeSpan cmdlet.