Scriptable only returns accelerometer state the last time it was opened

Hi, I’m using the Device.isFaceUp() or Device.isFaceDown() Scriptable functions in a Shortcut, however they only appear to return the device state the last time Scriptable was open. Can workaround this by opening Scriptable as the first action of the Shortcut, but this is undesirable for the requirement. Checking if I’m missing something here, or is this a limitation of Scriptable, i.e. Scriptable cannot query the device’s accelerometer data when run via Shortcuts.

I’m using isFaceDown in an automation without opening Scriptable and without problems on iOS 14.6. Maybe iOS 15 introduced this bug?