Rest_command doesn't work when executed with automation

Hi - you need to format your post so we can read your code.

Use preformatted text tags - </> on the posting toolbar. Also have a read of this when you get a chance:

Item 11 is all about formatting…