You only get the error when you specify -AsSecureString, otherwise it works fine and has been using a secure string by default for a while now. The warning is stupid and misleading.

Comments