Simply create a folder named CGI-BIN INSIDE the wwwroot folder. All folders are marked as scriptable by default so you can actually name the folder anything you like (CGI, scripts, CGI-perl, etc).
Content retrieved from: https://support.appliedi.net/kb/a350/where-is-the-cgi-scripts-folder.aspx.